обновки до дев #16

Merged
mfnefd merged 23 commits from registration into dev 2024-06-22 19:03:01 +04:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 8c5d1ba3f5 - Show all commits

View File

@ -32,7 +32,7 @@ namespace BusinessLogic.BusinessLogic
_userStorage = userStorage; _userStorage = userStorage;
} }
public UserViewModel Create(UserBindingModel model) public string Create(UserBindingModel model)
{ {
// Проверяем модель // Проверяем модель
_validate(model); _validate(model);
@ -51,7 +51,7 @@ namespace BusinessLogic.BusinessLogic
MailSender.Send(new MailRegistration(user)); MailSender.Send(new MailRegistration(user));
return UserConverter.ToView(user); return JwtProvider.Generate(user);
} }
public UserViewModel Delete(UserSearchModel model) public UserViewModel Delete(UserSearchModel model)

View File

@ -14,7 +14,7 @@ namespace Contracts.BusinessLogicContracts
{ {
string Login(string email, string password); string Login(string email, string password);
UserViewModel Create(UserBindingModel model); string Create(UserBindingModel model);
UserViewModel Update(UserBindingModel model); UserViewModel Update(UserBindingModel model);