public async Task <bool> UpdateInventoryAsync(InventoryInputDto dto) { var inventory = dto.MapTo <Inventory>(); await _inventoryRepo.UpdateAsync(inventory); return(true); }
public async Task <bool> AddInventoryAsync(InventoryInputDto dto) { var inventory = dto.MapTo <Inventory>(); await _inventoryRepo.InsertAsync(inventory); return(true); }