public JsonResult saveEmailTemplate(EmailTemplate e) { string msg = null; int status = 0; try { e.crtUserId = MySession.userId; status = _emailTemplateServ.saveEmailTemplate(e); msg = status > 0 ? "s" : "f"; } catch (Exception ex) { msg = "Error:" + ex.Message; } return(Json(new { msg = msg }, JsonRequestBehavior.AllowGet)); }