예제 #1
0
        public IEnumerable <ProductType> GetFinishedProductTypeListWithNoCustomUI()
        {
            int x  = new ProductNatureService(_unitOfWork).GetProductNatureByName(ProductTypeConstants.FinishedMaterial).ProductNatureId;
            var pt = _unitOfWork.Repository <ProductType>().Query().Get().Where(m => m.ProductNatureId == x && m.IsCustomUI == null);

            return(pt);
        }
예제 #2
0
        public IEnumerable <ProductType> GetProductTypeList()
        {
            int id    = new ProductTypeService(_unitOfWork).GetProductTypeByName(ProductTypeConstants.Rug).ProductTypeId;
            int finid = new ProductNatureService(_unitOfWork).GetProductNatureByName(ProductTypeConstants.FinishedMaterial).ProductNatureId;

            return(from p in db.ProductTypes
                   where p.ProductTypeId != id && p.ProductNatureId == finid
                   select p
                   );
        }