public async Task <IActionResult> Delete(string id) { await repository.RemoveAsync(id); return(RedirectToAction(nameof(Index))); }