示例#1
0
 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();
 }
示例#2
0
 public IActionResult Post([FromBody] CheckAppointmentDisponibilityRequest request)
 {
     _calendarService.CheckAppointmentDisponibility(request);
     return(NoContent());
 }