base logic #5
@ -13,6 +13,7 @@ namespace Contracts.BindingModels
|
|||||||
public string SecondName { get; set; } = string.Empty;
|
public string SecondName { get; set; } = string.Empty;
|
||||||
public string Email { get; set; } = string.Empty;
|
public string Email { get; set; } = string.Empty;
|
||||||
public string PasswordHash { get; set; } = string.Empty;
|
public string PasswordHash { get; set; } = string.Empty;
|
||||||
|
public string? Password { get; set; }
|
||||||
public DateTime Birthday { get; set; }
|
public DateTime Birthday { get; set; }
|
||||||
public RoleBindingModel Role { get; set; } = null!;
|
public RoleBindingModel Role { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,8 @@ namespace Contracts.BusinessLogicContracts
|
|||||||
{
|
{
|
||||||
public interface IUserLogic
|
public interface IUserLogic
|
||||||
{
|
{
|
||||||
|
UserViewModel Login(UserBindingModel model);
|
||||||
|
|
||||||
UserViewModel Create(UserBindingModel model);
|
UserViewModel Create(UserBindingModel model);
|
||||||
|
|
||||||
UserViewModel Update(UserBindingModel model);
|
UserViewModel Update(UserBindingModel model);
|
||||||
|
23
Contracts/Exceptions/AccountException.cs
Normal file
23
Contracts/Exceptions/AccountException.cs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Contracts.Exceptions
|
||||||
|
{
|
||||||
|
public class AccountException : Exception
|
||||||
|
{
|
||||||
|
public AccountException()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public AccountException(string message) : base(message)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public AccountException(string message, Exception inner) : base(message, inner)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user