public void EditOrdering(EditOrderingCommand command) { var order = _orderingService.Find(command.OrderingId); order.Phone = command.Phone; order.Address = command.Address; order.Note = command.Note; _orderingService.Update(order); _unitOfWork.SaveChanges(); }
public OrderingDTO GetById(Guid orderingId) { var ordering = _orderingService.Find(orderingId); return(Mapper.Map <Domain.Entity.Ordering, OrderingDTO>(ordering)); }