login endpoint SES-85 #21
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "SES-85"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
dodanie endpoint logowania
@ -19,1 +19,4 @@
{ }
public async Task<UserViewModel> SearchUserByNickname(string userName)
{ var User = await Repository.Get(u => u.Nickname.Equals(userName)).FirstOrDefaultAsync(); return Mapper.Map<UserViewModel>(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