Ejemplo n.º 1
0
        /// <summary>
        /// Delete the domain object in the database using the domain's ID
        /// Redirect the user back to the Registration page
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task <IActionResult> OnPostAsync(int id)
        {
            await _domain.DeleteDomain(id);

            return(Redirect("/"));
        }