UserService.cs edit

This commit is contained in:
Kosma 2020-12-09 23:09:57 +01:00
parent 4580c2fe17
commit 572b48c15e

View File

@ -19,6 +19,9 @@ namespace SessionCompanion.Services.Services
{ } { }
public async Task<UserViewModel> SearchUserByNickname(string userName) 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);
}
} }
} }