public EntityREFACCIONES Get(int Id)
        {
            var data = base.DataContext.REFACCIONES.Where(p => p.RefaccionID == Id);

            if (data.Count() == 1)
            {
                return(FactoryREFACCIONES.Get(data.Single()));
            }
            else
            {
                return(null);
            }
        }
 public List <EntityREFACCIONES> GetAllRefc(DateTime Fecha, List <string> Centro, List <string> Almacen)
 {
     this.DataContext.Database.CommandTimeout = 180;
     return(FactoryREFACCIONES.GetList(base.DataContext.REFACCIONES.Where(p => DbFunctions.TruncateTime(p.Creacion.Value) == Fecha && Centro.Contains(p.CENTRO) && Almacen.Contains(p.ALMACEN)).ToList()));
 }
 public List <EntityREFACCIONES> GetAll()
 {
     this.DataContext.Database.CommandTimeout = 180;
     return(FactoryREFACCIONES.GetList(base.DataContext.REFACCIONES.ToList()));
 }
 public List <EntityREFACCIONES> GetActives()
 {
     return(FactoryREFACCIONES.GetList(base.DataContext.REFACCIONES.Where(p => p.Procesado == true).ToList()));
 }