public async Task <ActionResult> Delete(int id) { await _client.Delete("api/mytask/delete", id); return(RedirectToAction(nameof(Index))); }