public async Task <IActionResult> AddReservation([FromBody] reservationDto reservationDto) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var reservationForCreate = _maper.Map <Reservation>(reservationDto); var reservationCreate = await _repo.Addreservation(reservationForCreate); var reservartionToreturn = _maper.Map <reservationDto>(reservationCreate); return(CreatedAtRoute("GetReservation", reservartionToreturn)); }