Example #1
0
        public PersonaJuridicaDTO GetById(PersonaJuridicaDTO objIn)
        {
            PersonaJuridicaDTO toReturn = ObjPersonaJuridicaDA.GetById(objIn);

            if (toReturn == null)
            {
                throw new NotFoundIdException(objIn.RutEmpresa);
            }

            toReturn.LstFamiliaProductos = ObjFamiliaProductosBL.GetAllByParameters(
                new PJFamProdProdDTO
            {
                RutEmpresa = objIn.RutEmpresa
            });

            return(toReturn);
        }
        public PersonaNaturalDTO GetById(PersonaNaturalDTO objIn)
        {
            PersonaNaturalDTO toReturn = ObjPersonaNaturalDA.GetById(objIn);

            if (toReturn == null)
            {
                throw new NotFoundIdException(objIn.RutPersonaNatural);
            }

            toReturn.LstFamiliaProductos = ObjFamiliaProductosBL.GetAllByParameters(
                new PNFamProdProdDTO
            {
                RutPersonaNatural = objIn.RutPersonaNatural
            });

            return(toReturn);

            return(toReturn);
        }
Example #3
0
 public void GetAllFamiliaProductosByParameters()
 {
     view.LstFamiliaProductos = ObjFamiliaProductosBL.GetAllByParameters(view.ObjResultadoProductosDisponibles);
 }
Example #4
0
 public void GetAllFamiliaProductos()
 {
     view.LstFamiliaProductos = ObjFamiliaProductosBL.GetAll();
 }