public async Task <IActionResult> CreateService(CreateServiceViewModel model) { var result = await _monitor.CreateService(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(-1); return(View(model)); }