Ejemplo n.º 1
0
        public EntityCodeFailureByProduct GetFailureProduct(int FailureID, int ProductID)
        {
            var data = base.DataContext.CodeFailureByProduct.Where(p => p.FK_CodeFailureID == FailureID && p.FK_ProductID == ProductID);

            if (data.Count() == 1)
            {
                return(FactoryCodeFailureByProduct.Get(data.Single()));
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
 public List <EntityCodeFailureByProduct> GetAll()
 {
     return(FactoryCodeFailureByProduct.GetList(base.DataContext.CodeFailureByProduct.ToList()));
 }
Ejemplo n.º 3
0
 public List <EntityCodeFailureByProduct> GetActives()
 {
     return(FactoryCodeFailureByProduct.GetList(base.DataContext.CodeFailureByProduct.Where(p => p.Status == true).ToList()));
 }
Ejemplo n.º 4
0
 public List <EntityCodeFailureByProduct> GetByProductID(int Id)
 {
     return(FactoryCodeFailureByProduct.GetList(base.DataContext.CodeFailureByProduct.Where(p => p.FK_ProductID == Id).ToList()));
 }