public JsonResult UpdateAdminNotificationSetting(bool IsEnable, int Type) { int result = 0; string strMsg = ""; if (ClientSessionData.UserClientId != 0) { result = clientLoginHelper.UpdateEnableDisableNotification(IsEnable, Type, true); if (result == 1) { TempData["CommonMessage"] = AppLogic.setFrontendMessage(0, "Notification Settings updated sucessfully"); } else { TempData["CommonMessage"] = AppLogic.setFrontendMessage(0, "Notification Settings updation failed"); } } return(Json(new { msg = strMsg }, JsonRequestBehavior.AllowGet)); }
// GET: Settings/UpdateNotificationSetting public JsonResult UpdateNotificationSetting(bool IsEnable, int Type) { int result = 0; string strMsg = ""; if (ClientSessionData.UserClientId != 0) { result = clientLoginHelper.UpdateEnableDisableNotification(IsEnable, Type, true); if (result == 1) { strMsg = "OK"; } } return(Json(new { msg = strMsg }, JsonRequestBehavior.AllowGet)); }