Esempio n. 1
0
        public IQueryable <ProductCategoryDto> GetFirstCategoryList()
        {
            IFirstCategoryService service = new FirstCategoryService();

            return(service.QueryAllAsync().Where(m => m.IsRemove == false)
                   .Select(m => new ProductCategoryDto()
            {
                Id = m.Id,
                CategoryName = m.FirstProductCategoryName
            }));
        }
 public FirstCategoryController(FirstCategoryService firstCategoryService)
 {
     _firstCategoryService = firstCategoryService;
 }