コード例 #1
0
        public async Task GetCategoryMainAdapterModels()
        {
            if (CategoryMainAdapterModels.Count == 0)
            {
                CategoryMainAdapterModels = new List <CategoryMainAdapterModel>();
                var Items = await CategoryMainService.GetAsync();

                CategoryMainAdapterModels.AddRange(Items);
            }
        }
コード例 #2
0
 public WsCategoryMainController(CRMContext context)
 {
     _context  = context;
     _cateMain = new CategoryMainService(_context);
 }