login endpoint SES-85 #21
@ -19,6 +19,9 @@ namespace SessionCompanion.Services.Services
|
||||
{ }
|
||||
|
||||
public async Task<UserViewModel> SearchUserByNickname(string userName)
|
||||
{ var User = await Repository.Get(u => u.Nickname.Equals(userName)).FirstOrDefaultAsync(); return Mapper.Map<UserViewModel>(User); }
|
||||
{
|
||||
var User = await Repository.Get(u => u.Nickname.Equals(userName)).FirstOrDefaultAsync();
|
||||
return Mapper.Map<UserViewModel>(User);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user