public IResult Update(int orderDetailId) { _orderDetailDal.Update(new OrderDetail { Id = orderDetailId }); return(new SuccessResult()); }
public bool Update(OrderDetail order) { bool result = _orderDetail.Update(order); if (result) { return(true); } return(false); }
public HttpResponseMessage AddPoint([FromBody] PointDto pointDto) { if (pointDto != null) { Review review = new Review() { MenuID = pointDto.MenuID, Point = pointDto.Point }; OrderDetail od = _orderDetailDal.GetByID(pointDto.OrderDetailID); od.Pointed = pointDto.Point; _orderDetailDal.Update(od); _reviewDal.Add(review); return(Request.CreateResponse(HttpStatusCode.OK, "Başarılı")); } else { return(Request.CreateResponse(HttpStatusCode.BadRequest, "Başarısız")); } }
public IResult Update(OrderDetail orderDetail) { _orderDetailDal.Update(orderDetail); return(new SuccessResult()); }
public IResult Update(OrderDetail orderDetail) { _orderDetailDal.Update(orderDetail); return(new SuccessResult(BusinessMessages.OrderDetailUpdated)); }
public void Update(OrderDetail entity) { _orderDetailDal.Update(entity); }
public void Update(OrderDetails orderDetail) { _orderDetailDal.Update(orderDetail); }
public void Update(OrderDetail table) { _orderDetailDal.Update(table); }
public OrderDetail Update(OrderDetail orderDetail) { return(_orderDetailDal.Update(orderDetail)); }
public IResult Update(OrderDetail entity) { _orderDetailDal.Update(entity); return(new SuccessResult()); }