public ActionResult UpdateIndustrialEquStatus(string Status, string Id) { if (ModelState.IsValid) { var result = _clsSecurity.UpdateIndustrialStatus(Status, Id, User.Identity.Name); var res = new JsonResult() { Data = result, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; return(res); } else { return(Json(new { NotificationTitle = clsGlobal.SwalTitle_Fail, NotificationContent = "Invalid Input", NotificationType = clsGlobal.SwalTitle_Error })); } }