public BookAppointment Create(CreateBookAppointment inputBookApointment)
        {
            BookAppointment newBookAppointment = new BookAppointment()
            {
                Id       = 99,
                BarberId = inputBookApointment.BarberId,
                Cancel   = 0,
                ClientId = 1,
                Date     = inputBookApointment.Date,
                Hour     = inputBookApointment.Hour
            };

            _bookappointments.Add(newBookAppointment);
            return(newBookAppointment);
        }
Ejemplo n.º 2
0
 public BookAppointment CreateBook(CreateBookAppointment bookAppointment)
 {
     return(_bookAppointmentService.Create(bookAppointment));
 }