public JsonResult DeActivateNotification(string NotificationID) { try { if (string.IsNullOrEmpty(Convert.ToString(NotificationID))) { return(Json("Error", JsonRequestBehavior.AllowGet)); } var result = _INotification.DeActivateNotificationByID(Convert.ToInt32(NotificationID)); if (result) { return(Json(data: true, behavior: JsonRequestBehavior.AllowGet)); } else { return(Json(data: false, behavior: JsonRequestBehavior.AllowGet)); } } catch (Exception) { throw; } }