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; });
public Task <DataStorageResult <CustomerDataModel> > AddCustomerAsync([ParameterDocumentation("Ο πελάτης")] CustomerDataModel model) => AddAsync(x => x.Customers, model);