mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 09:33:13 +00:00
30 lines
1.3 KiB
C#
30 lines
1.3 KiB
C#
using Data.SeaHavenIndustries;
|
|
using Microsoft.AspNetCore.Components.Forms;
|
|
using Microsoft.AspNetCore.Identity;
|
|
using SeaHavenIndustries.Helper.ViewModels;
|
|
using SeaHavenIndustries.ViewModel;
|
|
|
|
namespace SeaHavenIndustries.Data.IRepository
|
|
{
|
|
public interface ISettingsRepository
|
|
{
|
|
Task<ApplicationUser> GetCurrentUserInfo();
|
|
Task<string> UpdateUser(ApplicationUser model, IBrowserFile file);
|
|
Task <List<Category>> GetAllCategories();
|
|
Task<string> AddCategory(Category category);
|
|
Task<string> DeleteCategory(int categoryId);
|
|
Task<Category> GetCategorById(int id);
|
|
Task<IdentityRole> GetRoleById(string roleId);
|
|
Task<string> AddRole(string roleName);
|
|
Task<List<RolesViewModel>> GetRoles();
|
|
Task<string> Changepassword(ChangePasswords changepassword);
|
|
Task<string> AddTemplate (Template template, List<FileUploadViewModel> files);
|
|
Task<List<WorkOrder>> GetTemplates();
|
|
Task<WorkOrder> ViewTemplate (int id);
|
|
Task<string> DeleteTemplate(int id);
|
|
Task<IEnumerable<ApplicationUser>> GetUsers();
|
|
Task<IEnumerable<Locations>> GetLocations();
|
|
Task<IEnumerable<Contacts>> GetContacts();
|
|
Task<DashboardViewModel> Getdashboarddata();
|
|
}
|
|
}
|