public async Task <IActionResult> EditServicePost(EditServiceViewModel model) { var result = await _monitor.EditService(model, GetCurrentUserAsync().Result.UserName); if (result.Succeeded) { _toastNotification.AddSuccessToastMessage(result.OkMessage, new ToastrOptions() { PositionClass = ToastPositions.TopCenter }); return(RedirectToAction("ListService", new { id = model.DatabaseSystemId })); } _toastNotification.AddErrorToastMessage(result.Errors, new ToastrOptions() { PositionClass = ToastPositions.TopCenter }); ViewBag.DataBaseList = _monitor.DatabaseSystemList(model.DatabaseSystemId); return(RedirectToAction(nameof(EditService), model.Id)); }