Beispiel #1
0
        public async Task <IActionResult> CreateOnOpen(string sort, Guid?orgId)
        {
            if (string.IsNullOrEmpty(sort))
            {
                return(NotFound());
            }
            Guid appId;

            try
            {
                appId = await _prlApplicationAltService.CreateOnOpen(sort, orgId, true);
            }
            catch (Exception)
            {
                return(await Task.Run(() => NotFound()));
            }
            return(RedirectToAction("AltAppDetails", new { id = appId, sort = sort }));
        }
Beispiel #2
0
        public async Task <IActionResult> CreateOnOpen(string sort)
        {
            if (string.IsNullOrEmpty(sort))
            {
                return(NotFound());
            }
            Guid appId;

            try
            {
                appId = await _prlApplicationAltService.CreateOnOpen(sort);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
            return(RedirectToAction("AltAppDetails", new { id = appId, sort = sort }));
        }