Пример #1
0
        public static VotacionPropuestaRespuestaDTO detalleVotacionPropuestaRespuesta(decimal idVotacionPropuesta, decimal idFamilia)
        {
            IList <VotacionPropuestaRespuestaDTO> theVotacionPropuestaRespuestaDTO = new List <VotacionPropuestaRespuestaDTO>();
            VotacionPropuestaRespuestaDTO         myVotacionPropuestaRespuestaDTO  = new VotacionPropuestaRespuestaDTO();

            theVotacionPropuestaRespuestaDTO = facade.VotacionPropuestaRespuesta.getListadoVotacionPropuestaRespuesta();

            if (theVotacionPropuestaRespuestaDTO.Any())
            {
                myVotacionPropuestaRespuestaDTO = theVotacionPropuestaRespuestaDTO.Where(x => x.TheVotacionPropuestaDTO.IdVotacionPropuesta == idVotacionPropuesta && x.TheFamiliaDTO.IdFamilia == idFamilia).First();
            }

            return(myVotacionPropuestaRespuestaDTO);
        }
Пример #2
0
        public static bool ValidaEliminacionPropuesta(VotacionPropuestaRespuestaDTO theVotacionPropuestaRespuestaDTO)
        {
            bool respuesta = facade.VotacionPropuestaRespuesta.ValidaEliminacionVotacionPropuestaRespuesta(theVotacionPropuestaRespuestaDTO);

            return(respuesta);
        }
Пример #3
0
        public static bool ActivaPropuesta(VotacionPropuestaRespuestaDTO theVotacionPropuestaRespuestaDTO)
        {
            bool respuesta = YouCom.DAL.VotacionPropuestaRespuestaDAL.ActivaVotacionPropuestaRespuesta(theVotacionPropuestaRespuestaDTO);

            return(respuesta);
        }