Beispiel #1
0
 public CreateOrEditSupplierViewModel(SupplierEditDto output)
 {
     output.MapTo(this);
 }
Beispiel #2
0
 protected async Task CreateSupplierAsync(SupplierEditDto input)
 {
     await _supplierRepository.InsertAsync(input.MapTo <Supplier>());
 }
Beispiel #3
0
        protected async Task UpdateSupplierAsync(SupplierEditDto input)
        {
            Supplier entity = await _supplierRepository.GetAsync(input.Id.Value);

            await _supplierRepository.UpdateAsync(input.MapTo(entity));
        }
Beispiel #4
0
 private async Task CreateSupplierAsync(SupplierEditDto input)
 {
     var supplier = input.MapTo <Supplier>();
     await _supplierRepository.InsertAsync(supplier);
 }