public ActionResult DeleteConfirmed(int id) { //PatientViewModel patientViewModel = db.PatientViewModels.Find(id); //db.PatientViewModels.Remove(patientViewModel); //db.SaveChanges(); PatientRepo.RemovePatient(id); return(RedirectToAction("Index")); }