public IResult Remove(int orderId) { var toRemove = GetById(orderId).Data; _orderDal.Delete(toRemove); return(new SuccessResult(Messages.OrderRemoved)); }
public IResult Delete(Order order) { var result = _orderDal.Get(o => o.Id == order.Id); _orderDal.Delete(result); return(new SuccessResult(Messages.Orders.Delete())); }
public IResult Delete(int orderId) { _orderDal.Delete(new Order { Id = orderId }); return(new SuccessResult()); }
public IResult Delete(int orderId) { Order order = new Order() { OrderID = orderId }; _orderDal.Delete(order); return(new SuccessResult("Sipariş güncellendi")); }
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)); }
public void DeleteOrder(int id) { if (id > 1) { _orderDal.Delete(new Order { OrderID = id }); } else { throw new Exception("Hata oldu"); } }
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)); }
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; } }
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); }
public IResult Delete(Order order) { _orderdal.Delete(order); return(new SuccessResult(Messages.OrderDelete)); }
public IResult Delete(Order model) { _orderDal.Delete(model); return(new SuccessResult(Messages.OrderDeleted)); }
public void Delete(Order order) { _orderDal.Delete(order); }
public void RemoveOrder(int id) { _orderDal.Delete(_orderDal.Get(s => s.Id == id)); }
public void Delete(Order entity, bool realDelete = true) { _orderDal.Delete(entity, realDelete); }
public IResult Delete(Order order) { _orderDal.Delete(order); return(new SuccessResult()); }
public void Delete(Order table) { _orderDal.Delete(table); }
public void Delete(Order entity) { _OrderDal.Delete(entity); }
public void Delete(Order order) { orderDal_.Delete(order); }
public int Delete(int id) { return(_orderDal.Delete(id)); }
public void Delete(int orderId) { _orderDal.Delete(orderId); }
public IResult Delete(Order order) { _orderDal.Delete(order); return(new SuccessResult("Sipariş silindi")); }
public IResult Delete(Order entity) { _orderDal.Delete(entity); return(new SuccessResult()); }
public IResult Delete(Order order) { _orderDal.Delete(order); return(new SuccessResult(BusinessMessages.OrderDeleted)); }
public IResult Delete(Order order) { _orderDal.Delete(order); return(new SuccessResult(Messages.ProductAdded)); }