// POST: api/Users public IHttpActionResult PostAccommodation([FromBody] AccommodationView accommodation) { var model = _mapper.MapAccommodationViewToAccommodation(accommodation); var result = _service.AddAccommodation(model); if (result) { return(Ok()); } else { return(InternalServerError()); } }