public async Task <IActionResult> CreateInstance(CreateInstanceViewModel model)
        {
            var result = await _monitor.CreateInstance(model, GetCurrentUserAsync().Result.UserName);

            if (result.Succeeded)
            {
                _toastNotification.AddSuccessToastMessage(result.OkMessage, new ToastrOptions()
                {
                    PositionClass = ToastPositions.TopCenter
                });
                return(RedirectToAction("ListInstance", new { id = model.ServiceId }));
            }

            _toastNotification.AddErrorToastMessage(result.Errors, new ToastrOptions()
            {
                PositionClass = ToastPositions.TopCenter
            });
            ViewBag.DataBaseList = _monitor.ServiceList(-1);
            return(View(model));
        }