public async Task <Order> UpdateAsync(OrderUpdateModel order) { await BookGetService.ValidateAsync(order); await CustomerGetService.ValidateAsync(order); return(await OrderDataAccess.UpdateAsync(order)); }
public async Task <Order> CreateAsync(OrderUpdateModel order) { await BookGetService.ValidateAsync(order); await CustomerGetService.ValidateAsync(order); order.Date = DateTime.Now; order.Arrived = false; return(await OrderDataAccess.InsertAsync(order)); }