public IActionResult Get()
        {
            try
            {
                HogarCore    hogarCore         = new HogarCore(dbContext);
                List <Hogar> hogaresPublicados = hogarCore.Get();

                if (hogaresPublicados.Count == 0)
                {
                    return(NotFound(Funciones.Constantes.GENERAL_NOT_FOUND));
                }

                return(Ok(hogaresPublicados));
            }
            catch (Exception ex)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError));
            }
        }
        public IActionResult Get(int id)
        {
            try
            {
                if (!Funciones.Validadores.validaId(id))
                {
                    return(BadRequest(Funciones.Constantes.BAD_REQUEST));
                }

                HogarCore          hogarCore  = new HogarCore(dbContext);
                IQueryable <Hogar> hogarFound = hogarCore.Get(id);
                if (hogarFound.ToList().Count == 0)
                {
                    return(NotFound(Funciones.Constantes.NOT_FOUND));
                }

                return(Ok(hogarFound));
            }
            catch (Exception ex)
            {
                return(StatusCode((int)HttpStatusCode.InternalServerError));
            }
        }