Exemple #1
0
        public ActionResult RemovePatientProfile(string patientId)
        {
            var success = false;
            var patient = _patientServices.GetPatientById(patientId);

            if (patient != null)
            {
                _patientServices.RemovePatient(patient);
                _unitofwork.Commit();

                success = true;
            }

            return(Json(new { success = success }, JsonRequestBehavior.AllowGet));
        }