// POST api/<controller> public IHttpActionResult Post(BookingView bv) { var booking = new Booking { NumberRoom = bv.NumberRoom, DateIn = bv.DateIn, DateOut = bv.DateOut, DurationStay = bv.DurationStay, IDCateRoom = bv.IDCateRoom, IDCus = bv.IDCus, TokenBooking = bv.TokenBooking }; Repositories.CreateBooking(booking); return(Ok()); }