public async Task <ActionResult> DeleteAsync(System.Guid id) { _service.Token = await getAccessToken(); await _service.DeleteAsync(id); return(Ok()); }
public async Task <IActionResult> OnPostAsync(int?id) { if (id == null) { return(NotFound()); } await _attributeService.DeleteAsync(id); return(RedirectToPage("./Index")); }