Ejemplo n.º 1
0
        public static bool ValidaEliminacionPeriodoHorario(DTO.PeriodoHorarioDTO thePeriodoHorarioDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idPeriodoHorario", SqlDbType.VarChar, 20, thePeriodoHorarioDTO.IdPeriodoHorario);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionPeriodoHorario", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
Ejemplo n.º 2
0
        public static bool Update(DTO.PeriodoHorarioDTO myPeriodoHorarioDTO)
        {
            bool resultado = PeriodoHorarioDAL.Update(myPeriodoHorarioDTO);

            return(resultado);
        }
Ejemplo n.º 3
0
        public static bool Insert(DTO.PeriodoHorarioDTO myPeriodoHorarioDTO)
        {
            bool resultado = PeriodoHorarioDAL.Insert(myPeriodoHorarioDTO);

            return(resultado);
        }