public static User GetUserFromIdentity()
        {
            var userRepository = new UserRepository();
            var token = IdentityHelper.GetUserToken();
            if (token == null)
                return null;

            var user = userRepository.Get(token);
            return user;
        }
 //
 // GET: /Home/
 public HomeController()
 {
     _videoRepository = new VideoRepository();
     this.userRepository = new UserRepository();
 }