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