Exemple #1
0
        public async Task <IActionResult> AddSystem(SystemListViewModel model)
        {
            try
            {
                await _siteService.AddSystemAsync(model.System);

                ShowAlertSuccess($"Added System '{model.System.Name}'");
            }
            catch (GraException gex)
            {
                ShowAlertDanger("Unable to add System: ", gex);
            }
            return(RedirectToAction("Index", new { search = model.Search }));
        }