Exemple #1
0
        public Common.DataMembers.Output.Usuario ChangePassword(Common.DataMembers.Input.ChangePassword usuario)
        {
            var usr = _usuarioInfrastructure.Get(usuario.UserName);

            if (usr.Password == usuario.OldPassword)
            {
                return(_usuarioInfrastructure.ChangePassword(usuario.UserName, usuario.NewPassword));
            }

            return(null);
        }
        public ICollection <Common.DataMembers.Output.Articulo> GetByUserInteresado(string user)
        {
            var usuario = _usuarioInfrastructure.Get(user);

            return(_articuloInfrastructure.GetByUserInteresado(usuario.Id));
        }
Exemple #3
0
        public bool UsuarioRepetido(Usuario usuario, string userName)
        {
            var item = _usuarioInfrastructure.Get(userName);

            return(item != null);
        }