UserService.cs edit
This commit is contained in:
parent
4580c2fe17
commit
572b48c15e
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user