public IHttpActionResult Post(Ubication ubication) { var hotelManager = new UbicationManagement(); hotelManager.Create(ubication); apiResponse = new ApiResponse(); return(Ok(apiResponse)); }
public IHttpActionResult Get() { var hotelManager = new UbicationManagement(); apiResponse = new ApiResponse(); var ubications = hotelManager.RetrieveAll(); apiResponse.Data = ubications; return(Ok(apiResponse)); }