public IActionResult DeleteSystemView(long id) { var model = _monitor.GetDatabaseSystemById(id, GetCurrentUserAsync().Result.UserName); if (model == null) { return(Json(null)); } if (!_monitor.DeleteSystem(id, GetCurrentUserAsync().Result.UserName)) { return(Json(false)); } _logger.InformationLog("System" + model.Name + " deleted succesfully", "Delete System", string.Empty, GetCurrentUserAsync().Result.UserName); return(Json(true)); }