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);
            }
        }