public async Task Update(UpdateSupplierDto dto) { var supplier = await GetSupplier(dto.SupplierId); supplier.Update(dto.Name); await _supplierRepository.Update(supplier); }
public async Task Put([FromBody] UpdateSupplierDto dto) { await _supplierService.Update(dto); }