public EntityCauseOrder Get(int Id)
        {
            var data = base.DataContext.CauseOrder.Where(p => p.PK_CauseOrderID == Id);

            if (data.Count() == 1)
            {
                return(FactoryCauseOrder.Get(data.Single()));
            }
            else
            {
                return(null);
            }
        }
 public List <EntityCauseOrder> GetAll()
 {
     return(FactoryCauseOrder.GetList(base.DataContext.CauseOrder.ToList()));
 }
 public List <EntityCauseOrder> GetActives()
 {
     return(FactoryCauseOrder.GetList(base.DataContext.CauseOrder.Where(p => p.Status == true).ToList()));
 }