fix user logic contract and user view model
This commit is contained in:
parent
0517a6cfb0
commit
a2b58598a6
@ -3,6 +3,7 @@ using Contracts.SearchModels;
|
|||||||
using Contracts.ViewModels;
|
using Contracts.ViewModels;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -11,7 +12,7 @@ namespace Contracts.BusinessLogicContracts
|
|||||||
{
|
{
|
||||||
public interface IUserLogic
|
public interface IUserLogic
|
||||||
{
|
{
|
||||||
UserViewModel Login(UserBindingModel model);
|
UserViewModel Login(string email, string password);
|
||||||
|
|
||||||
UserViewModel Create(UserBindingModel model);
|
UserViewModel Create(UserBindingModel model);
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ namespace Contracts.ViewModels
|
|||||||
public string FirstName { get; set; } = string.Empty;
|
public string FirstName { get; set; } = string.Empty;
|
||||||
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 DateTime Birthday { get; set; }
|
public DateTime Birthday { get; set; }
|
||||||
public RoleViewModel Role { get; set; } = null!;
|
public RoleViewModel Role { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user