Example #1
0
        public static bool ValidaEliminacionTipoEmergencia(DTO.Emergencia.TipoEmergenciaDTO theTipoEmergenciaDTO, ref DataTable pobjDatatable)
        {
            bool retorno = false;

            YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper();
            wobjSQLHelper.SetParametro("@idTipoEmergencia", SqlDbType.VarChar, 20, theTipoEmergenciaDTO.IdTipoEmergencia);

            try
            {
                //====================================================================================
                if (wobjSQLHelper.Ejecutar("validaEliminacionTipoEmergencia", "YouCom", pobjDatatable) <= 0)
                {
                    retorno = false;
                }
                else
                {
                    retorno = true;
                }
            }
            catch (Exception eobjException)
            {
                throw eobjException;
            }
            return(retorno);
        }
Example #2
0
        public static bool ValidaEliminacionTipoEmergencia(DTO.Emergencia.TipoEmergenciaDTO theTipoEmergenciaDTO)
        {
            bool respuesta = facade.TipoEmergencia.ValidaEliminacionTipoEmergencia(theTipoEmergenciaDTO);

            return(respuesta);
        }
Example #3
0
        public static bool Update(DTO.Emergencia.TipoEmergenciaDTO myTipoEmergenciaDTO)
        {
            bool resultado = TipoEmergenciaDAL.Update(myTipoEmergenciaDTO);

            return(resultado);
        }
Example #4
0
        public static bool ActivaTipoEmergencia(DTO.Emergencia.TipoEmergenciaDTO theTipoEmergenciaDTO)
        {
            bool respuesta = TipoEmergenciaDAL.ActivaTipoEmergencia(theTipoEmergenciaDTO);

            return(respuesta);
        }
Example #5
0
        public static bool Insert(DTO.Emergencia.TipoEmergenciaDTO myTipoEmergenciaDTO)
        {
            bool resultado = TipoEmergenciaDAL.Insert(myTipoEmergenciaDTO);

            return(resultado);
        }