- Timestamp:
- 07/06/22 13:13:35 (2 years ago)
- Branches:
- master
- Children:
- 899b19d
- Parents:
- d76b7ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resTools_backend/backend/Controllers/ReservationsController.cs
rd76b7ee rcc4db18 27 27 } 28 28 29 [Authorize] 30 [HttpGet("new")] 31 public async Task<List<ReservationResponse>> GetReservationsNew() 32 { 33 return await _reservationService.GetNewReservations(); 34 } 35 29 36 [HttpPost()] 30 37 public async Task<IActionResult> CreateReservation([FromBody] CreateReservationRequest req) … … 35 42 36 43 [Authorize] 37 [HttpPut("{rid} ")]44 [HttpPut("{rid}/status")] 38 45 public async Task<IActionResult> ChangeStatus(int rid, [FromQuery] ReservationStatus status) 39 46 { … … 41 48 return Ok(); 42 49 } 50 51 [Authorize] 52 [HttpPut("{rid}/table")] 53 public async Task<IActionResult> ChangeTable(int rid, [FromQuery] int tableId) 54 { 55 await _reservationService.AssignTable(tableId, rid); 56 return Ok(); 57 } 43 58 }
Note:
See TracChangeset
for help on using the changeset viewer.