public async Task <JsonResult> StateSystemView(long id) { var model = _monitor.GetDatabaseSystemById(id, GetCurrentUserAsync().Result.UserName); if (model == null) { return(Json(false)); } if (await _monitor.DisableEnableSystem(id, GetCurrentUserAsync().Result.UserName)) { return(Json(true)); } return(Json(false)); }