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

            Source = await SourceService.GetAsync(id);

            if (Source != null)
            {
                await SourceService.DeleteAsync(Source);
            }

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