예제 #1
0
        private IEnumerable <SelectListItem> GetCategories()
        {
            string   userId     = FindUserID();
            ItemRepo itemRepo   = new ItemRepo();
            var      categories = itemRepo.GetCategories(userId);

            return(new SelectList(categories, "Value", "Text"));
        }