Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool ValidaCodigo(Dto.Asesor obj)
 {
     Dto.Asesor objExiste = new Data.DAsesor().RecuperarFiltrados(obj).FirstOrDefault();
     if (objExiste != null)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="idasesor"></param>
        /// <returns></returns>
        public bool Asesor_Insertar(Dto.Asesor obj, out byte?idasesor)
        {
            bool blnRespuesta = new Business.BAsesor().Crear(obj);

            if (blnRespuesta)
            {
                idasesor = obj.idasesor;
            }
            else
            {
                idasesor = null;
            }

            return(blnRespuesta);
        }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool Asesor_ValidaCodigo(Dto.Asesor obj)
 {
     return(new Business.BAsesor().ValidaCodigo(obj));
 }
Example #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool Asesor_Eliminar(Dto.Asesor obj)
 {
     return(new Business.BAsesor().Eliminar(obj));
 }
Example #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool Asesor_Actualizar(Dto.Asesor obj)
 {
     return(new Business.BAsesor().Actualizar(obj));
 }
Example #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="objFiltros"></param>
 /// <returns></returns>
 public IEnumerable <Dto.Asesor> Asesor_RecuperarFiltros(Dto.Asesor objFiltros)
 {
     return(new Business.BAsesor().RecuperarFiltrado(objFiltros));
 }
Example #7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool Eliminar(Dto.Asesor obj)
 {
     return(new Data.DAsesor().Eliminar(obj));
 }
Example #8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool Actualizar(Dto.Asesor obj)
 {
     return(new Data.DAsesor().Actualizar(obj));
 }
Example #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public IEnumerable <Dto.Asesor> RecuperarFiltrado(Dto.Asesor obj)
 {
     return(new Data.DAsesor().RecuperarFiltrados(obj).ToList());
 }
Example #10
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool Crear(Dto.Asesor obj)
 {
     return(new Data.DAsesor().Insertar(obj));
 }