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