public IHttpActionResult GetStatistic(string type)
        {
            apiResp = new ApiResponse();
            var mng = new TipoHabitacionesManager();

            return(Ok(apiResp));
        }
        // GET api/customer
        // Retrieve
        public IHttpActionResult Get()
        {
            apiResp = new ApiResponse();
            var mng = new TipoHabitacionesManager();

            apiResp.Data = mng.RetrieveAll();

            return(Ok(apiResp));
        }
        public IHttpActionResult Hotel(string idHotel)
        {
            try
            {
                var mng = new TipoHabitacionesManager();

                apiResp      = new ApiResponse();
                apiResp.Data = mng.RetrieveByHotelId(idHotel);
                return(Ok(apiResp));
            }
            catch (BussinessException bex)
            {
                return(InternalServerError(new Exception(bex.AppMessage.Message)));
            }
        }
        public IHttpActionResult Post(TipoHabitaciones tipoHabitaciones)
        {
            try
            {
                var mng = new TipoHabitacionesManager();
                mng.Create(tipoHabitaciones);

                apiResp         = new ApiResponse();
                apiResp.Message = "El tipo de habitación fue creado";

                return(Ok(apiResp));
            }
            catch (BussinessException bex)
            {
                return(InternalServerError(new Exception(bex.AppMessage.Message)));
            }
        }
        public IHttpActionResult Get(string id)
        {
            try
            {
                var mng = new TipoHabitacionesManager();
                var tipoHabitaciones = new TipoHabitaciones
                {
                    Codigo = id
                };

                tipoHabitaciones = mng.RetrieveById(tipoHabitaciones);
                apiResp          = new ApiResponse();
                apiResp.Data     = tipoHabitaciones;
                return(Ok(apiResp));
            }
            catch (BussinessException bex)
            {
                return(InternalServerError(new Exception(bex.AppMessage.Message)));
            }
        }