Пример #1
0
 public JsonResult GetFields()
 {
     try
     {
         var records = FieldService.QueryFields();
         return(Json(records, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         return(Json(ex.Message, JsonRequestBehavior.AllowGet));
     }
 }