public async Task <IActionResult> Post([FromBody] AddUpdateHotelViewModel model)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                var newHotel = new Hotel();
                _mapper.Map(model, newHotel);
                _hotelRepository.AddEntity(newHotel);

                if (await _hotelRepository.SaveAsync())
                {
                    model.Id = newHotel.Id;
                    var newUri = Url.Link("GetHotel", new { id = model.Id });
                    return(Created(newUri, model));
                }
                else
                {
                    _message = "Nie udało się dodać nowego hotelu";
                    return(BadRequest(_message));
                }
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }