Пример #1
0
 public JsonResult GetSkills()
 {
     try
     {
         var skills = new SkillsController().GetAllSkills().Select(s => new { DisplayText = s.Name, Value = s.SkillId });;
         return(Json(new { Result = "OK", Options = skills }));
     }
     catch (Exception ex)
     {
         return(Json(new { Result = "ERROR", Message = ex.Message }));
     }
 }
 public JsonResult GetSkills()
 {
     try
     {
         var skills = new SkillsController().GetAllSkills().Select(s => new { DisplayText = s.Name, Value = s.SkillId }); ;
         return Json(new { Result = "OK", Options = skills });
     }
     catch (Exception ex)
     {
         return Json(new { Result = "ERROR", Message = ex.Message });
     }
 }