Ejemplo n.º 1
0
        public IActionResult Post([FromBody] PatientModel patient)
        {
            if (ModelState.IsValid)
            {
                var result = _patientService.CreatePatrients(patient);

                return(Ok(result));
            }
            else
            {
                return(BadRequest(ModelState));
            }
        }