예제 #1
0
 public IResult Update(int orderDetailId)
 {
     _orderDetailDal.Update(new OrderDetail {
         Id = orderDetailId
     });
     return(new SuccessResult());
 }
예제 #2
0
        public bool Update(OrderDetail order)
        {
            bool result = _orderDetail.Update(order);

            if (result)
            {
                return(true);
            }

            return(false);
        }
예제 #3
0
 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"));
     }
 }
예제 #4
0
 public IResult Update(OrderDetail orderDetail)
 {
     _orderDetailDal.Update(orderDetail);
     return(new SuccessResult());
 }
예제 #5
0
 public IResult Update(OrderDetail orderDetail)
 {
     _orderDetailDal.Update(orderDetail);
     return(new SuccessResult(BusinessMessages.OrderDetailUpdated));
 }
예제 #6
0
 public void Update(OrderDetail entity)
 {
     _orderDetailDal.Update(entity);
 }
 public void Update(OrderDetails orderDetail)
 {
     _orderDetailDal.Update(orderDetail);
 }
예제 #8
0
 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());
 }