public IActionResult EditService(long id) { var serviceToEdit = _monitor.GetServiceToEdit(id, GetCurrentUserAsync().Result.UserName); if (serviceToEdit == null) { _toastNotification.AddSuccessToastMessage("Service Not found", new ToastrOptions() { PositionClass = ToastPositions.TopCenter }); return(RedirectToAction("ListService")); } ViewBag.Pass = serviceToEdit.LoginPassword; ViewBag.DataBaseList = _monitor.DatabaseSystemList(serviceToEdit.DatabaseSystemId); return(View(serviceToEdit)); }