public PartialViewResult Pbar(User user)
        {
            var model = new PbarModel
            {
                LoginLink          = Url.Action("Login", new{ returnUrl = HttpContext.Request.Url.AbsoluteUri }),
                LogoutLink         = Url.Action("Logout"),
                AccountDetailsLink = Url.Action("Details")
            };

            if (user != null)
            {
                model.IsAuthenticated = true;
                model.UsersName       = user.Name;
                model.PictureUrl      = user.ImageUrl;
            }

            return(PartialView(model));
        }
        public PartialViewResult Pbar(User user)
        {
            var model = new PbarModel
            {
                LoginLink = Url.Action("Login", new{returnUrl = HttpContext.Request.Url.AbsoluteUri}),
                LogoutLink = Url.Action("Logout"),
                AccountDetailsLink = Url.Action("Details")
            };

            if (user != null)
            {
                model.IsAuthenticated = true;
                model.UsersName = user.Name;
                model.PictureUrl = user.ImageUrl;    
            }

            return PartialView(model);
        }