예제 #1
0
        public async Task <ActionResult> DeleteAsync(System.Guid id)
        {
            _service.Token = await getAccessToken();

            await _service.DeleteAsync(id);

            return(Ok());
        }
예제 #2
0
        public async Task <IActionResult> OnPostAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            await _attributeService.DeleteAsync(id);

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