Ejemplo n.º 1
0
        public OperationResult Delete(int OrderID, string Sku)
        {
            var model = EOrderDetailList.FirstOrDefault(t => t.OrderID == OrderID && t.Sku == Sku);

            EOrderDetailRepository.Delete(model);
            return(new OperationResult(OperationResultType.Success, "successfully deleted"));
        }
Ejemplo n.º 2
0
        public int DeleteOrderDetail(int orderID, string sku)
        {
            var model = EOrderDetailList.FirstOrDefault(t => t.OrderID == orderID && t.Sku == sku);

            return(EOrderDetailRepository.Delete(model));
        }