示例#1
0
 public JsonResult GetAllActivities()
 {
     try
     {
         BCBSClient client = new BCBSClient();
         string result = client.GetAllActivities();
         //List<ContractModel> ContractList = JsonConvert.DeserializeObject<List<ContractModel>>(result);
         List<ActivityListModel> activities = JsonConvert.DeserializeObject<List<ActivityListModel>>(result);
         return Json(activities, JsonRequestBehavior.AllowGet);
     }
     catch (Exception ex)
     {
         return Json(ex.Message, JsonRequestBehavior.AllowGet);
     }
 }