public ActionResult PostJob(int?id) { Session["ExRate"] = MatchBxCommon.GetExchangeRate(); dynamic model = new ExpandoObject(); int jobid = id.GetValueOrDefault(); TempData["Category"] = objCatMod.GetList(); TempData["Tags"] = new List <TrendingTags>(); TempData["Skills"] = new List <Skills>(); //GetTagsnSkills(0); if (jobid != 0) { objJobList = objJobMod.GetJobPost(jobid); if (objJobList.Count() > 0) { TrendingTagsModel _TrendingTagsModel = new TrendingTagsModel(); SkillsModel _SkillsModel = new SkillsModel(); //TempData["Tags"] = objJobMod.GetTrendingTags(objJobList[0].JobCategoryId); //TempData["Skills"] = objJobMod.GetTopSkills(objJobList[0].JobCategoryId); if (jobid != 0) { TempData["Tags"] = _TrendingTagsModel.GetList(" * ", " JobCategoryId = " + objJobList[0].JobCategoryId); } else { TempData["Tags"] = _TrendingTagsModel.GetList(" * ", " JobCategoryId = " + objJobList[0].JobCategoryId + " and TagType = 'S'"); } TempData["Skills"] = _SkillsModel.GetList(" * ", " JobCategoryId = " + objJobList[0].JobCategoryId); objJobList.FirstOrDefault().JobSkillsMappingList = objJobMod.GetSkillsByJobId(jobid); objJobList.FirstOrDefault().JobTrendingTagsMappingList = objJobMod.GetTagsByJobId(jobid); objJobList.FirstOrDefault().JobDocumentsList = objJobMod.GetDocumentsByJobId(jobid); objJob = objJobList.FirstOrDefault(); objJob.BudgetInDollar = objJob.BudgetASP; objJob.BudgetASP = objJob.BudgetASP * (decimal)Session["ExRate"]; objJob.BudgetASPString = "$ " + objJob.BudgetASP.ToString("#,##0.00"); objJob.JobId = Convert.ToInt32(id); TempData["SelectedTags"] = objJob.JobTrendingTagsMappingList; TempData["SelectedSkills"] = objJob.JobSkillsMappingList; Session["TrendingTagsList"] = objJob.JobTrendingTagsMappingList; Session["SkillsList"] = objJob.JobSkillsMappingList; } } return(View("PostJob", objJob)); }