Esempio n. 1
0
        public async Task <IActionResult> OnPostDelete()
        {
            await _businessService.DeleteAsync(Business.Id);

            return(RedirectToPage());
        }
        public async Task <ActionResult> DeleteAsync(int id)
        {
            await _service.DeleteAsync(id);

            return(NoContent());
        }