public async Task <IActionResult> Post([FromBody] Patient patient) { var new_patient = await _clinicRepository.AddPatientAsync(patient); if (new_patient is Domain.Models.Patient) { return(CreatedAtAction(nameof(Get), new { id = patient.Id }, new_patient)); } else { return(BadRequest("Request could not be processed.")); } }