public async Task <IActionResult> Delete(string id) { var book = await Task.Run(() => AccountProxy.Get(id)); if (book == null) { return(NotFound()); } await Task.Run(() => AccountProxy.Remove(book.Id)); return(NoContent()); }
public IActionResult Delete(string id) { var book = AccountProxy.Get(id); if (book == null) { return(NotFound()); } AccountProxy.Remove(book.Id); return(NoContent()); }