private IEnumerable <SelectListItem> GetCategories() { string userId = FindUserID(); ItemRepo itemRepo = new ItemRepo(); var categories = itemRepo.GetCategories(userId); return(new SelectList(categories, "Value", "Text")); }