示例#1
0
        public async Task Update(UpdateSupplierDto dto)
        {
            var supplier = await GetSupplier(dto.SupplierId);

            supplier.Update(dto.Name);
            await _supplierRepository.Update(supplier);
        }
示例#2
0
 public async Task Put([FromBody] UpdateSupplierDto dto)
 {
     await _supplierService.Update(dto);
 }