Ejemplo n.º 1
0
 public async Task <IActionResult> EditRB(Guid roombookedid, RoomsBooked roomsBooked)
 {
     roomsBooked.BookingID = roombookedid;
     return(Ok(await _RoomsBooked.UpdateRoomBookeds(roomsBooked)));
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> GetRoomsBooked(RoomsBooked roomBooked)
        {
            var result = await _RoomsBooked.AddRoomsBookedAsync(roomBooked);

            return(Created(HttpContext.Request.Scheme + "://" + HttpContext.Request.Host + HttpContext.Request.Path + "/" + result.RoomBookedID, result));
        }