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); } }
public List <EntityCodeFailureByProduct> GetAll() { return(FactoryCodeFailureByProduct.GetList(base.DataContext.CodeFailureByProduct.ToList())); }
public List <EntityCodeFailureByProduct> GetActives() { return(FactoryCodeFailureByProduct.GetList(base.DataContext.CodeFailureByProduct.Where(p => p.Status == true).ToList())); }
public List <EntityCodeFailureByProduct> GetByProductID(int Id) { return(FactoryCodeFailureByProduct.GetList(base.DataContext.CodeFailureByProduct.Where(p => p.FK_ProductID == Id).ToList())); }