Последние изменения
This commit is contained in:
parent
34849c0377
commit
a7b13bef7a
@ -38,6 +38,9 @@ namespace HardwareShopDatabaseImplement.Implements
|
||||
if (!string.IsNullOrEmpty(model.Email))
|
||||
return context.Users
|
||||
.FirstOrDefault(x => x.Email.Equals(model.Email))?.GetViewModel;
|
||||
if (!string.IsNullOrEmpty(model.Login))
|
||||
return context.Users
|
||||
.FirstOrDefault(x => x.Login.Equals(model.Login))?.GetViewModel;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user