Ejemplo n.º 1
0
 public async Task <AppointmentDto> CreateAsync(CreateAppointmentRequest appointment)
 {
     _logger.LogInformation($"Creating new appointment for {appointment.Title}");
     return((await _httpService.HttpPostAsync <CreateAppointmentResponse>(CreateAppointmentRequest.Route, appointment)).Appointment);
 }
 public async Task <PatientDto> CreateAsync(CreatePatientRequest patient)
 {
     return((await _httpService.HttpPostAsync <CreatePatientResponse>("patients", patient)).Patient);
 }
Ejemplo n.º 3
0
 public async Task <RoomDto> CreateAsync(CreateRoomRequest room)
 {
     return((await _httpService.HttpPostAsync <CreateRoomResponse>("rooms", room)).Room);
 }
Ejemplo n.º 4
0
 public async Task <DoctorDto> CreateAsync(CreateDoctorRequest doctor)
 {
     return((await _httpService.HttpPostAsync <CreateDoctorResponse>("doctors", doctor)).Doctor);
 }
 public async Task <ClientDto> CreateAsync(CreateClientRequest client)
 {
     return((await _httpService.HttpPostAsync <CreateClientResponse>("clients", client)).Client);
 }
 public async Task <AppointmentDto> CreateAsync(CreateAppointmentRequest appointment)
 {
     return((await _httpService.HttpPostAsync <CreateAppointmentResponse>("appointments", appointment)).Appointment);
 }