コード例 #1
0
 private List <SelectListItem> GetAllQuestion()
 {
     return(_examManager.GetAllQuestion()
            .Select(c => new SelectListItem()
     {
         Value = c.Id.ToString(), Text = c.Name
     }).ToList());
 }