public void TestDelete()
        {
            PatientBusinessLayer businessLayer = new PatientBusinessLayer();
            Patient testPatient = businessLayer.GetPatientByEmail("*****@*****.**");

            businessLayer.RemovePatient(testPatient);
            Assert.IsTrue(businessLayer.GetPatientByEmail("*****@*****.**") == null);
        }
        public ActionResult DeleteConfirmed(int id)
        {
            Patient patient = patientBusinessLayer.GetPatientById((int)id);

            patientBusinessLayer.RemovePatient(patient);
            Logging.loggInfo($"Patient delted having patient id = {id}");
            return(RedirectToAction("Index"));
        }