Compare commits
3 Commits
147ed7ad07
...
f35f42818e
Author | SHA1 | Date | |
---|---|---|---|
f35f42818e | |||
8c5d1ba3f5 | |||
e109746059 |
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user