Ejemplo n.º 1
0
        // GET: Profile/Comunities
        public ActionResult Index()
        {
            string lang = Request.Cookies.Get("languageCookie").Value;

            ViewBag.AlertMsg = TempData["msg"];

            CommunityVM community = new CommunityVM();

            community.communities = data.GetCommunityList(lang).ToList();
            return(View(community));
        }
Ejemplo n.º 2
0
        // GET: Profile/Post
        public ActionResult Index()
        {
            string lang = Request.Cookies.Get("languageCookie").Value;
            CommunitiesApiController communitydata = new CommunitiesApiController();
            PostVM postModel = new PostVM();

            postModel.communities    = new SelectList(communitydata.GetCommunityList(lang), "Id", "Name");
            postModel.answerTypes    = new SelectList(apiData.GetAnswerTypesList(lang), "answerType", "answerTypeName");
            postModel.indexQuestions = apiData.Get().ToList();

            // return PartialView("_Feed", postModel);
            return(View(postModel));
        }