コード例 #1
0
        public async Task <IActionResult> OnPostDelete()
        {
            await _businessService.DeleteAsync(Business.Id);

            return(RedirectToPage());
        }
コード例 #2
0
        public async Task <ActionResult> DeleteAsync(int id)
        {
            await _service.DeleteAsync(id);

            return(NoContent());
        }