示例#1
0
 public Task <DataStorageResult <CustomerDataModel> > UpdateCustomerAsync([ParameterDocumentation("Ο πελάτης")] CustomerDataModel model)
 => UpdateAsync(x => x.Customers, x => x.Id == model.Id, x =>
 {
     x.FirstName   = model.FirstName;
     x.LastName    = model.LastName;
     x.PhoneNumber = model.PhoneNumber;
     x.Email       = model.Email;
     x.VAT         = model.VAT;
 });
示例#2
0
 public Task <DataStorageResult <CustomerDataModel> > AddCustomerAsync([ParameterDocumentation("Ο πελάτης")] CustomerDataModel model)
 => AddAsync(x => x.Customers, model);