public static IList<Model.Order> GetOrdersForTask(int tid) { if (tid<=0) { return null; } IOrder orderProvider = new OrderDal(EFContext.Instance); return orderProvider.GetList(tid); }
public static bool UpdateOrder(Model.Order order) { IOrder orderProvider = new OrderDal(EFContext.Instance); return orderProvider.Update(order); }
public static IList<Model.Order> GetOrders(int page, int pageSize, Expression<Func<Model.Order, bool>> expresion, out int count,bool includeTask=false) { IOrder orderProvider = new OrderDal(EFContext.Instance); return orderProvider.GetList(page,pageSize,includeTask,expresion,out count); }
public static Model.Order GetOrder(int id, bool includeTask = false, bool includeLog = false) { IOrder orderProvider = new OrderDal(EFContext.Instance); return orderProvider.Get(id, includeTask, includeLog); }
public static int Count(Expression<Func<Model.Order, bool>> expresion) { IOrder orderProvider = new OrderDal(EFContext.Instance); return orderProvider.Count(expresion); }
public static bool AddOrder(Model.Order order) { IOrder orderProvider = new OrderDal(EFContext.Instance); return orderProvider.Add(order); }