2022-03-19 19:58:10 +04:00
|
|
|
|
using SecurityContract.BindingModels;
|
|
|
|
|
using SecurityContract.ViewModels;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
2022-03-19 19:58:10 +04:00
|
|
|
|
|
|
|
|
|
namespace SecurityContract.Logics.IGenericEntityLogic
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Логика работы с пользователями
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IUserLogic : IGenericEntityLogic<UserGetBindingModel, UserSetBindingModel, UserListViewModel, UserViewModel>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Метод получения или создания пользователя для студента/сотрудника/преподавателя
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model"></param>
|
|
|
|
|
/// <param name="password"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
UserViewModel GetOrCreateUser(UserGetBindingModel model, string password);
|
|
|
|
|
}
|
|
|
|
|
}
|