Exemplo n.º 1
0
        public IActionResult Index()
        {
            string CurrentUserID = user.GetUserAsync(HttpContext.User).Result.Id;

            var res = service.GetAllUserPosts(user.GetUserAsync(HttpContext.User).Result.Id);

            ViewBag.posts               = res;
            ViewBag.CurrentUserID       = user.GetUserAsync(HttpContext.User).Result.Id;
            ViewBag.CurrentUserUserName = userHomeService.GetUserName(CurrentUserID);

            ViewBag.user = user.GetUserAsync(HttpContext.User).Result;
            ViewBag.img  = user.GetUserAsync(HttpContext.User).Result;

            ViewBag.friendes = friendsServiece.GetAllFrinds();
            ViewBag.user     = user.GetUserAsync(HttpContext.User).Result;
            ViewBag.CurrUser = CurrUser;

            return(View());
        }
Exemplo n.º 2
0
 public IActionResult Index()
 {
     return(View(FriendsServiece.GetAllFrinds()));
 }