public EntityHistory Get(int Id)
        {
            var data = base.DataContext.History.Where(p => p.PK_HistoryID == Id);

            if (data.Count() == 1)
            {
                return(FactoryHistory.Get(data.Single()));
            }
            else
            {
                return(null);
            }
        }
 public List <EntityHistory> GetAll()
 {
     return(FactoryHistory.GetList(base.DataContext.History.ToList()));
 }
 public List <EntityHistory> GetActives()
 {
     return(FactoryHistory.GetList(base.DataContext.History.Where(p => p.Status == true).ToList()));
 }
 public List <EntityHistory> GetByOrderID(int OrderID)
 {
     return(FactoryHistory.GetList(base.DataContext.History.Where(p => p.FK_OrderID == OrderID).ToList()));
 }