Esempio n. 1
0
        // GET: Profile/PostManager
        public ActionResult Index()
        {
            PostVM objVM = new PostVM();

            objVM.indexQuestions = apiData.GetAnsweredQuestions();

            return(View(objVM));
        }
        public ActionResult UserProfile()
        {
            PostVM objVM = new PostVM();

            objVM.UserId = User.Identity.GetUserId();

            objVM.indexQuestions = apiData.GetAnsweredQuestions(objVM.UserId);

            return(View(objVM));
        }