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

This commit is contained in:
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(); using var context = new FactoryDatabase();
return context.Masters return context.Masters
.FirstOrDefault(x => ((!string.IsNullOrEmpty(model.Email) && x.Email == model.Email) && (!string.IsNullOrEmpty(model.Password) && x.Password == model.Password)) || .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)) (model.Id.HasValue && x.Id == model.Id))
?.GetViewModel; ?.GetViewModel;
} }
public MasterViewModel? Insert(MasterBindingModel model) public MasterViewModel? Insert(MasterBindingModel model)