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
Rozbij to na linijki. Nazwa zmiennej z małej litery
public async Task SearchUserByNickname(string userName)
{
var user = await ...
.FirstOrDefaultAsync();
return Mapper....
}
Coś jak masz w kontrolerze