コード例 #1
0
        public async Task <IActionResult> OnPostAsync(string id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Station = await _service.GetAsync(id);

            if (Station != null)
            {
                await _service.DeleteRegistryAsync(id);
            }

            return(RedirectToPage("./Index"));
        }