public async Task <IActionResult> AddNewPatient(string name, string birthday, int status)
        {
            Patient patient = _patientService.CreatePatient(name, birthday, status);
            await _patientService.AddPatient(patient);

            return(Redirect("/patients"));
        }
Exemple #2
0
        public int AddPatient(PatientEntity patient)
        {
            int returnValue;

            try
            {
                returnValue = _mgr.AddPatient(patient);
                return(returnValue);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }