Esempio n. 1
0
 public ActionResult SeachAdmissionTypeByAdvanceSearch(DTO.LABURNUM.COM.AdmissionTypeModel model)
 {
     try
     {
         List <DTO.LABURNUM.COM.AdmissionTypeModel> dbAdmissionTypeList = new LABURNUM.COM.Component.AdmissionType().GetAdmissionTypeByAdvanceSearch(model);
         string html = new LABURNUM.COM.Component.HtmlHelper().RenderViewToString(this.ControllerContext, "~/Views/AdmissionType/SearchResult.cshtml", dbAdmissionTypeList);
         return(Json(new { code = 0, message = "success", result = html }));
     }
     catch (Exception)
     {
         return(Json(new { code = -2, message = "failed", result = new LABURNUM.COM.Component.Common().GetErrorView() }));
     }
 }
Esempio n. 2
0
 public ActionResult EditAdmissionTypePopup(long id)
 {
     try
     {
         DTO.LABURNUM.COM.AdmissionTypeModel model = new DTO.LABURNUM.COM.AdmissionTypeModel();
         model = new LABURNUM.COM.Component.AdmissionType().GetAdmissionTypeByAdmissionTypeId(id);
         string html = new LABURNUM.COM.Component.HtmlHelper().RenderViewToString(this.ControllerContext, "~/Views/AjaxRequest/EditAdmissionTypePopup.cshtml", model);
         return(Json(new { code = 0, message = "success", result = html }));
     }
     catch (Exception)
     {
         return(Json(new { code = -1, message = "failed", result = new LABURNUM.COM.Component.Common().GetErrorView() }));
     }
 }