예제 #1
0
        public override RetrivePersonasRes Execute(RetrivePersonasReq pServiceRequest)
        {
            RetrivePersonasRes wRes = new RetrivePersonasRes();
            List <PersonaBE>   pers = PersonasDAC.SearchByParams(pServiceRequest.BusinessData.Nombre, pServiceRequest.BusinessData.Apellido);

            wRes.BusinessData.AddRange(pers);


            return(wRes);
        }
예제 #2
0
        public override RetrivePersonasRes Execute(RetrivePersonasReq pServiceRequest)
        {
            RetrivePersonasRes res;

            if (string.IsNullOrEmpty(pServiceRequest.BusinessData.Nombre))
            {
                throw new Fwk.Exceptions.FunctionalException("Negro mandame los datos");
            }
            res = new RetrivePersonasRes();


            PersonasDAC.SearchByParams(pServiceRequest.BusinessData.Nombre, pServiceRequest.BusinessData.Apellido);


            return(res);
        }