Графические ошибки

This commit is contained in:
SemkaKMLV 2023-05-19 21:48:18 +04:00
parent e21fb29401
commit 5e206fc41b

View File

@ -48,9 +48,9 @@ namespace FactoryDatabaseImplement.Implements
using var context = new FactoryDatabase();
return context.Masters
.FirstOrDefault(x => ((!string.IsNullOrEmpty(model.Email) && x.Email == model.Email) && (!string.IsNullOrEmpty(model.Password) && x.Password == model.Password)) ||
(model.Id.HasValue && x.Id == model.Id))
?.GetViewModel;
.FirstOrDefault(x => ((!string.IsNullOrEmpty(model.Email) && x.Email == model.Email) && (!string.IsNullOrEmpty(model.Password) && x.Password == model.Password)) ||
(model.Id.HasValue && x.Id == model.Id))
?.GetViewModel;
}
public MasterViewModel? Insert(MasterBindingModel model)