shoc-backend/SeaHavenIndustries/Data/IRepository/ISettingsRepository.cs
2024-09-28 14:58:36 -04:00

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();
}
}