Exemple #1
0
        public async Task <IActionResult> CheckIn([FromBody] Guid id)
        {
            if (id == Guid.Empty)
            {
                return(BadRequest());
            }

            try {
                await _reservationRepository.ChangeStatus(id, StatusEnum.Arrive);

                return(Ok(true));
            } catch (Exception e) {
                return(BadRequest(new { message = e.Message }));
            }
        }