public void CheckAppointmentDisponibility(CheckAppointmentDisponibilityRequest request) { _endpoint.Send <IRequestAppointmentCommand>(new { CalendarId = request.CalendarId, PetId = request.PetId, PetName = request.PetName, OwnerId = request.OwnerId, OwnerFamilyName = request.OwnerFamilyName, OwnerGivenName = request.OwnerGivenName, Date = request.Date, Time = request.Time, MessageType = (typeof(IRequestAppointmentCommand)).Name, Timestamp = DateTimeOffset.UtcNow }).Wait(); }
public IActionResult Post([FromBody] CheckAppointmentDisponibilityRequest request) { _calendarService.CheckAppointmentDisponibility(request); return(NoContent()); }