public int AddBooking([FromBody] CreatBooking creatBooking)
        {
            #region mapping
            Customer customer = new Customer()
            {
                email      = creatBooking.personEmail,
                name       = creatBooking.personName,
                password   = creatBooking.personPassword,
                persontype = creatBooking.personType,
                phone      = creatBooking.number
            };

            BookingTime bookingTime = new BookingTime()
            {
                date      = creatBooking.date_,
                startTime = creatBooking.startTime,
                endTime   = creatBooking.endTime
            };

            Booking booking = new Booking()
            {
                totalPrice    = Convert.ToDouble(creatBooking.totalprice),
                hairdresserId = creatBooking.hairdressId,
                salonId       = creatBooking.salonBookingId,
                customerId    = btcr.createCustomer(customer).customerId,
                bookingTimeId = btcr.CreateBookingTime(bookingTime).bookingTimeId,
                services      = creatBooking.services
            };
            #endregion
            return(btcr.AddBooking(booking));
            //return btcr.AddBooking(booking);
        }
        public int AddBooking()
        {
            Booking booking = new Booking();

            return(btcr.AddBooking(booking));
        }