Ejemplo n.º 1
0
        /// <summary>
        /// Delete posts
        /// </summary>
        /// <returns>index page</returns>
        public async Task <IActionResult> OnPostDelete()
        {
            await _post.DeleteAsync(ID.Value);

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