Merge pull request 'registration' (#11) from registration into main

Reviewed-on: #11
This commit is contained in:
mfnefd 2024-06-17 18:33:14 +04:00
commit f35f42818e
2 changed files with 3 additions and 3 deletions

View File

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

View File

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