public async Task <JsonResult> StateInstanceView(long id)
        {
            var model = _monitor.GetInstanceById(id, GetCurrentUserAsync().Result.UserName);

            if (model == null)
            {
                return(Json(false));
            }
            if (await _monitor.DisableEnableInstance(id, GetCurrentUserAsync().Result.UserName))
            {
                return(Json(true));
            }

            return(Json(false));
        }