Esempio n. 1
0
        public static List <RolBLL> ListarRoles()
        {
            List <RolBLL> roles = new List <RolBLL>();

            foreach (RolBE rolBE in RolDAL.ListarRoles())
            {
                RolBLL rol = new RolBLL();
                rol.BE = rolBE;
                roles.Add(rol);
            }

            return(roles);
        }
Esempio n. 2
0
        public void Registro(string pNombre, string pApellido, string pMail, string pUsuario, string pPassword, RolBLL pRol)
        {
            this.BE = new UsuarioBE();

            this.BE.Nombre   = pNombre;
            this.BE.Apellido = pApellido;
            this.BE.Mail     = pMail;
            this.BE.Usuario  = pUsuario;
            this.BE.Password = pPassword;
            this.BE.Rol      = pRol.BE;

            UsuarioDAL.AltaUsuario(this.BE);
        }