public IResult Remove(int orderId)
        {
            var toRemove = GetById(orderId).Data;

            _orderDal.Delete(toRemove);
            return(new SuccessResult(Messages.OrderRemoved));
        }
Esempio n. 2
0
        public IResult Delete(Order order)
        {
            var result = _orderDal.Get(o => o.Id == order.Id);

            _orderDal.Delete(result);
            return(new SuccessResult(Messages.Orders.Delete()));
        }
Esempio n. 3
0
 public IResult Delete(int orderId)
 {
     _orderDal.Delete(new Order {
         Id = orderId
     });
     return(new SuccessResult());
 }
Esempio n. 4
0
        public IResult Delete(int orderId)
        {
            Order order = new Order()
            {
                OrderID = orderId
            };

            _orderDal.Delete(order);
            return(new SuccessResult("Sipariş güncellendi"));
        }
Esempio n. 5
0
        public IResult Delete(Order order)
        {
            var result = _orderDal.Get(o => o.OrderId == order.OrderId);

            if (result != null)
            {
                _orderDal.Delete(order);
                return(new SuccessResult(Messages.Orders.Delete()));
            }
            return(new ErrorResult(Messages.NotFound));
        }
Esempio n. 6
0
 public void DeleteOrder(int id)
 {
     if (id > 1)
     {
         _orderDal.Delete(new Order {
             OrderID = id
         });
     }
     else
     {
         throw new Exception("Hata oldu");
     }
 }
Esempio n. 7
0
        public IResult Delete(Order order)
        {
            var result = BusinessRules.Run(CommonLogics.SystemMaintenanceTime());

            if (!result.Success)
            {
                return(new ErrorResult(result.Message));
            }

            _orderDal.Delete(order);

            return(new SuccessResult(Messages.OrderDeleted));
        }
Esempio n. 8
0
 public bool Delete(int id)
 {
     try
     {
         Order _order = _orderDal.Get(x => x.Id == id);
         _order.IsDeleted = true;
         _orderDal.Delete(_order);
         return(true);
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 9
0
        public bool Delete(Guid id)
        {
            var deleteObject = _orderDal.GetOne(x => x.Id == id);

            if (deleteObject != null)
            {
                bool result = _orderDal.Delete(deleteObject);
                if (result)
                {
                    return(true);
                }

                return(false);
            }
            return(false);
        }
Esempio n. 10
0
 public IResult Delete(Order order)
 {
     _orderdal.Delete(order);
     return(new SuccessResult(Messages.OrderDelete));
 }
Esempio n. 11
0
 public IResult Delete(Order model)
 {
     _orderDal.Delete(model);
     return(new SuccessResult(Messages.OrderDeleted));
 }
Esempio n. 12
0
 public void Delete(Order order)
 {
     _orderDal.Delete(order);
 }
Esempio n. 13
0
 public void RemoveOrder(int id)
 {
     _orderDal.Delete(_orderDal.Get(s => s.Id == id));
 }
Esempio n. 14
0
 public void Delete(Order entity, bool realDelete = true)
 {
     _orderDal.Delete(entity, realDelete);
 }
Esempio n. 15
0
 public IResult Delete(Order order)
 {
     _orderDal.Delete(order);
     return(new SuccessResult());
 }
Esempio n. 16
0
 public void Delete(Order table)
 {
     _orderDal.Delete(table);
 }
Esempio n. 17
0
 public void Delete(Order entity)
 {
     _OrderDal.Delete(entity);
 }
Esempio n. 18
0
 public void Delete(Order order)
 {
     orderDal_.Delete(order);
 }
Esempio n. 19
0
 public int Delete(int id)
 {
     return(_orderDal.Delete(id));
 }
 public void Delete(int orderId)
 {
     _orderDal.Delete(orderId);
 }
Esempio n. 21
0
 public IResult Delete(Order order)
 {
     _orderDal.Delete(order);
     return(new SuccessResult("Sipariş silindi"));
 }
Esempio n. 22
0
 public IResult Delete(Order entity)
 {
     _orderDal.Delete(entity);
     return(new SuccessResult());
 }
Esempio n. 23
0
 public IResult Delete(Order order)
 {
     _orderDal.Delete(order);
     return(new SuccessResult(BusinessMessages.OrderDeleted));
 }
Esempio n. 24
0
 public IResult Delete(Order order)
 {
     _orderDal.Delete(order);
     return(new SuccessResult(Messages.ProductAdded));
 }