Пример #1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            EditedAction = await automationManager.GetAsync(id.Value);

            return(Page());
        }
Пример #2
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            // Get Notebook from database
            EditedAction = await automationManager.GetAsync(id.Value);

            if (EditedAction == null)
            {
                return(NotFound());
            }

            return(Page());
        }