public async Task <IActionResult> DeleteConfirmed(string id) { var c = await repository.GetObject(id); await repository.DeleteObject(c); return(RedirectToAction("Index")); }