Exemplo n.º 1
0
 public ActionResult CalculateBudgetinDollar(string budget)
 {
     try
     {
         decimal bidbudget      = Convert.ToDecimal(budget);
         decimal exchangerate   = MatchBxCommon.GetExchangeRate();
         decimal budgetindollar = bidbudget / exchangerate;
         return(Json(budgetindollar, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         return(Json("Exception", JsonRequestBehavior.AllowGet));
     }
 }
Exemplo n.º 2
0
        public ActionResult CreateGig(int?id)
        {
            Session["ExRate"] = MatchBxCommon.GetExchangeRate();
            dynamic model = new ExpandoObject();
            int     gigid = id.GetValueOrDefault();

            TempData["Category"] = objCatMod.GetList();
            TempData["Tags"]     = new List <TrendingTags>();
            TempData["Skills"]   = new List <Skills>();
            //GetTagsnSkills(0);
            if (gigid != 0)
            {
                objGigList = objGigMod.GetGigPost(gigid);
                if (objGigList.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 (gigid != 0)
                    {
                        TempData["Tags"] = _TrendingTagsModel.GetList(" * ", " JobCategoryId = " + objGigList[0].JobCategoryId);
                    }
                    else
                    {
                        TempData["Tags"] = _TrendingTagsModel.GetList(" * ", " JobCategoryId = " + objGigList[0].JobCategoryId + " and TagType = 'S'");
                    }
                    TempData["Skills"] = _SkillsModel.GetList(" * ", " JobCategoryId = " + objGigList[0].JobCategoryId);
                    objGigList.FirstOrDefault().GigSkillsMappingList       = objGigMod.GetSkillsByGigId(gigid);
                    objGigList.FirstOrDefault().GigTrendingTagsMappingList = objGigMod.GetTagsByGigId(gigid);
                    objGigList.FirstOrDefault().GigDocumentsList           = objGigMod.GetDocumentsByGigId(gigid);
                    objGig = objGigList.FirstOrDefault();
                    objGig.BudgetInDollar       = objGig.BudgetASP;
                    objGig.BudgetASP            = objGig.BudgetASP * (decimal)Session["ExRate"];
                    objGig.BudgetASPString      = "$ " + objGig.BudgetASP.ToString("#,##0.00");
                    objGig.GigId                = Convert.ToInt32(id);
                    TempData["SelectedTags"]    = objGig.GigTrendingTagsMappingList;
                    TempData["SelectedSkills"]  = objGig.GigSkillsMappingList;
                    Session["TrendingTagsList"] = objGig.GigTrendingTagsMappingList;
                    Session["SkillsList"]       = objGig.GigSkillsMappingList;
                }
            }
            return(View("CreateGig", objGig));
        }
Exemplo n.º 3
0
        public ActionResult Details(int?id, int?subid, string type = "")
        {
            TempData["TrendingTagsFooter"]       = MatchBxCommon.GetTrendingTagsFooter();
            TempData["BidMessage"]               = "";
            TempData["GigAmount"]                = "";
            TempData["AXPRFeeAmt"]               = "0.00";
            TempData["AXPRFeeTotAmt"]            = "";
            TempData["BidAmountinDollar"]        = "";
            TempData["GigSubscriptionId"]        = 0;
            TempData["GigCompletionDate"]        = "";
            TempData["GigTitle"]                 = string.Empty;
            TempData["GigCompletionDate"]        = "";
            TempData["JobCompletionDateDisplay"] = "";
            //Session["Expired"] = "N";
            //Session["FromDetails"] = "Y";
            Session["GigSubDocMasterList"]    = null;
            Session["GigSubDocList"]          = null;
            TempData["NoofDocuments"]         = 0;
            TempData["GigSubscriptionStatus"] = "S";

            dynamic        model           = new ExpandoObject();
            GigModel       _GigModel       = new GigModel();
            GigReviewModel _GigReviewModel = new GigReviewModel();
            Gig            _Gig            = new Gig();

            int gigid = id.GetValueOrDefault();

            Session["GigId"]    = gigid;
            Session["SubGigId"] = subid.GetValueOrDefault();
            if (gigid != 0)
            {
                List <Gig> _GigList = MatchBxCommon.GenerateBadgeForGig(_GigModel.GetGigPost(gigid));
                if (_GigList.Count() > 0)
                {
                    _GigList.FirstOrDefault().GigSkillsMappingList       = _GigModel.GetSkillsByGigId(gigid);
                    _GigList.FirstOrDefault().GigTrendingTagsMappingList = _GigModel.GetTagsByGigId(gigid);
                    _Gig = _GigList.FirstOrDefault();
                    Session["JobPoster"] = _Gig.UserId;

                    Session["JobCategory"]       = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(_Gig.Category.ToLower());
                    Session["JobCategoryHeader"] = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(_Gig.Category.ToLower());

                    if (Session["JobCategoryId"] != null && Session["JobCategoryId"].ToString() == "0")
                    {
                        Session["JobCategoryName"] = CultureInfo.CurrentCulture.TextInfo.ToTitleCase("ALL SERVICES".ToLower());
                    }
                    else
                    {
                        Session["JobCategoryName"] = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(_Gig.Category.ToLower());
                    }

                    decimal exchangerate = MatchBxCommon.GetExchangeRate();
                    decimal bid          = Convert.ToDecimal(_Gig.BudgetASP);
                    decimal perc         = (Convert.ToDecimal(bid) * 3) / 100;
                    TempData["AXPRFeeAmt"] = perc.ToString("#,##0.00");
                    string totalfees = (bid + perc).ToString("#,##0.00");
                    TempData["AXPRFeeTotAmt"] = totalfees;
                    TempData["GigAmount"]     = _Gig.BudgetASP.ToString() + " AXPR";
                    //TempData["BidAmountinDollar"] = (Math.Round(exchangerate * (bid + perc), 2)).ToString("#,##0.00");
                    TempData["BidAmountinDollar"] = (Math.Round(exchangerate * (bid), 2)).ToString("#,##0.00");

                    UserProfileModel objProfileMod = new UserProfileModel();
                    UserProfile      objProfile    = new UserProfile();
                    objProfile      = objProfileMod.LoadUserProfile(_Gig.UserId).FirstOrDefault();
                    _Gig.ProfilePic = objProfile.ProfilePic;

                    if (type == "R")
                    {
                        var _SubObj = new GigSubscription();
                        _SubObj.GigId            = Convert.ToInt32(id);
                        _Gig.GigSubscriptionList = new GigSubscriptionModel().GetGigSubscriptions(_SubObj);
                    }
                    else if (type == "A")
                    {
                        var _SubObj = new GigSubscription();
                        _SubObj.GigId            = Convert.ToInt32(id);
                        _Gig.GigActiveOrdersList = new GigSubscriptionModel().GetActiveOrders(_SubObj);
                    }
                    else if (type == "C")
                    {
                        var _SubObj = new GigSubscription();
                        _SubObj.GigId = Convert.ToInt32(id);
                        _Gig.GigCompletedOrdersList = new GigSubscriptionModel().GetCompletedOrders(_SubObj);
                    }
                    _Gig.GigReviewList = _GigReviewModel.GetReviewForGig(gigid);
                    if (_Gig.GigReviewList.Count > _RecordDisplay)
                    {
                        _Gig.GigReviewList.ForEach(s => s.Isloadmore = 1);
                    }
                    else
                    {
                        _Gig.GigReviewList.ForEach(s => s.Isloadmore = 0);
                    }
                    TempData["ReviewCount"] = _Gig.GigReviewList.Count();
                    _Gig.GigReviewList      = _Gig.GigReviewList.Take(_RecordDisplay).ToList();

                    try
                    {
                        string rating = Adjust(decimal.ToDouble(objProfile.Rating)).ToString();
                        TempData["Rating"]      = rating;
                        TempData["RatingCount"] = Adjust(decimal.ToDouble(objProfile.RatingCount)).ToString();
                        if (rating.Contains('.'))
                        {
                            string[] parts = rating.Split('.');
                            TempData["RatingWhole"] = parts[0];
                            if (parts[1] != null)
                            {
                                TempData["RatingFraction"] = parts[1];
                            }
                            else
                            {
                                TempData["RatingFraction"] = 0;
                            }
                        }
                        else
                        {
                            TempData["RatingWhole"]    = rating;
                            TempData["RatingFraction"] = 0;
                        }
                    }
                    catch (Exception ex)
                    {
                    }

                    if (Convert.ToInt32(Session["UserId"]) != _Gig.UserId)
                    {
                        if (subid.GetValueOrDefault() > 0)
                        {
                            GigSubscription      _GigSubscription      = new GigSubscription();
                            GigSubscriptionModel _GigSubscriptionModel = new GigSubscriptionModel();
                            _GigSubscription.GigSubscriptionId = subid.GetValueOrDefault();

                            List <GigSubscription> _GigSubscriptionList = _GigSubscriptionModel.LoadSubscriptionDetails(_GigSubscription);
                            if (_GigSubscriptionList.Count() > 0)
                            {
                                TempData["BidMessage"]               = _GigSubscriptionList.FirstOrDefault().Description;
                                TempData["GigTitle"]                 = _GigSubscriptionList.FirstOrDefault().Title;
                                TempData["GigCompletionDate"]        = _GigSubscriptionList.FirstOrDefault().JobCompletionDate;
                                TempData["GigSubscriptionId"]        = _GigSubscriptionList.FirstOrDefault().GigSubscriptionId;
                                TempData["JobCompletionDateDisplay"] = _GigSubscriptionList.FirstOrDefault().JobCompletionDateDisplay;
                                TempData["NoofDocuments"]            = _GigSubscriptionList.FirstOrDefault().NoofDocuments;
                                TempData["GigSubscriptionStatus"]    = _GigSubscriptionList.FirstOrDefault().GigSubscriptionStatus;
                            }
                        }
                    }
                }
            }
            return(View("Details", _Gig));
        }
Exemplo n.º 4
0
        public ActionResult Details(int?id)
        {
            //TempData["TrendingTagsFooter"] = MatchBxCommon.GetTrendingTagsFooter();
            TempData["BidMessage"]        = "";
            TempData["GigAmount"]         = "";
            TempData["AXPRFeeAmt"]        = "0.00";
            TempData["AXPRFeeTotAmt"]     = "";
            TempData["BidAmountinDollar"] = "";
            TempData["GigSubscriptionId"] = 0;
            TempData["GigCompletionDate"] = "";
            TempData["GigTitle"]          = string.Empty;
            //Session["Expired"] = "N";
            //Session["FromDetails"] = "Y";

            dynamic  model     = new ExpandoObject();
            GigModel _GigModel = new GigModel();
            Gig      _Gig      = new Gig();

            int gigid = id.GetValueOrDefault();

            Session["GigId"] = gigid;
            if (gigid != 0)
            {
                List <Gig> _GigList = MatchBxCommon.GenerateBadgeForGig(_GigModel.GetGigPost(gigid));
                if (_GigList.Count() > 0)
                {
                    //ViewBag.MetaTag = HomeMetaTags(objJobList[0].JobTitle.ToString(), objJobList[0].JobDescription.ToString());

                    _GigList.FirstOrDefault().GigSkillsMappingList       = _GigModel.GetSkillsByGigId(gigid);
                    _GigList.FirstOrDefault().GigTrendingTagsMappingList = _GigModel.GetTagsByGigId(gigid);
                    _Gig = _GigList.FirstOrDefault();
                    //Session["JobPoster"] = objJob.UserId;

                    Session["JobCategory"]       = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(_Gig.Category.ToLower());
                    Session["JobCategoryHeader"] = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(_Gig.Category.ToLower());

                    if (Session["JobCategoryId"].ToString() == "0")
                    {
                        Session["JobCategoryName"] = CultureInfo.CurrentCulture.TextInfo.ToTitleCase("ALL JOBS".ToLower());
                    }
                    else
                    {
                        Session["JobCategoryName"] = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(_Gig.Category.ToLower());
                    }

                    decimal exchangerate = MatchBxCommon.GetExchangeRate();
                    int     bid          = Convert.ToInt32(_Gig.BudgetASP);
                    decimal perc         = (Convert.ToDecimal(bid) * 3) / 100;
                    TempData["AXPRFeeAmt"] = perc.ToString("#,##0.00");
                    string totalfees = (bid + perc).ToString("#,##0.00");
                    TempData["AXPRFeeTotAmt"]     = totalfees;
                    TempData["GigAmount"]         = _Gig.BudgetASP.ToString() + " AXPR";
                    TempData["BidAmountinDollar"] = (Math.Round(exchangerate * (bid + perc), 2)).ToString("#,##0.00");

                    //TimeSpan span = objJob.JobCompletionDate.Subtract(DateTime.Now);
                    //string EndingIn = span.Days + " DAYS, " + span.Hours + " HOURS, " + span.Minutes + " MINS";
                    //if (span.Days == 0 || objJob.JobStatus == "P")
                    //{
                    //    Session["Expired"] = "N";
                    //    EndingIn = span.Days + " DAYS, " + Math.Abs(span.Hours) + " HOURS, " + Math.Abs(span.Minutes) + " MINS";
                    //}
                    //else if (span.Days < 0 || span.Hours < 0 || span.Minutes < 0 || objJob.JobStatus == "A" || objJob.JobStatus == "C" || objJob.JobStatusSeeker == "C")
                    //{
                    //    Session["Expired"] = "Y";
                    //}
                    //TempData["EndingIn"] = EndingIn;
                    //if (Convert.ToInt32(Session["UserId"]) != _Gig.UserId)
                    //{
                    //    GigSubscription _GigSubscription = new GigSubscription();
                    //    GigSubscriptionModel _GigSubscriptionModel = new GigSubscriptionModel();
                    //    _GigSubscription.UserId = Convert.ToInt32(Session["UserId"]);
                    //    _GigSubscription.GigId = _Gig.GigId;

                    //    List<GigSubscription> _GigSubscriptionList = _GigSubscriptionModel.LoadJobBiddingDetails(_JobBidding);
                    //    if (objBiddingList.Count() > 0)
                    //    {
                    //        TempData["BidMessage"] = objBiddingList.FirstOrDefault().BidMessage;
                    //        TempData["BidAmount"] = (objBiddingList.FirstOrDefault().BidAmount).ToString("#,##0") + " AXPR";
                    //        int bid = Convert.ToInt32(objBiddingList.FirstOrDefault().BidAmount);
                    //        decimal perc = (Convert.ToDecimal(bid) * 3) / 100;
                    //        TempData["AXPRFeeAmt"] = perc.ToString("#,##0.00");

                    //        string totalfees = (bid - perc).ToString("#,##0.00");
                    //        TempData["AXPRFeeTotAmt"] = totalfees;
                    //        decimal exchangerate = MatchBxCommon.GetExchangeRate();
                    //        TempData["BidAmountinDollar"] = (Math.Round(exchangerate * (objBiddingList.FirstOrDefault().BidAmount), 2)).ToString("#,##0.00");
                    //        TempData["JobBiddingId"] = objBiddingList.FirstOrDefault().JobBiddingId;
                    //        TempData["TokenDistributionId"] = objBiddingList.FirstOrDefault().TokenDistributionId;
                    //        TempData["IsPendingStatus"] = objBiddingList.FirstOrDefault().IsPending;
                    //    }
                    //    else
                    //    {
                    //        TempData["IsPendingStatus"] = "N";
                    //    }
                }

                //objJob.ShareJob = shareJobObj.GetShareDetails(jobid, Convert.ToInt32(Session["UserId"]));
                //if (objJob.ShareJob == null)
                //{
                //    objJob.ShareJob = new SocialMediaShare();
                //    objJob.ShareJob.JobId = jobid;
                //    objJob.ShareJob.UserId = Convert.ToInt32(Session["UserId"]);
                //    objJob.ShareJob.FBShare = null;
                //    objJob.ShareJob.TwitterShare = null;
                //}
                //}
            }
            return(View("Details", _Gig));
        }
Exemplo n.º 5
0
        public ActionResult Index(int?id, int?type)
        {
            cattype = type.GetValueOrDefault();
            if (cattype != 0)
            {
                if (cattype == 2)
                {
                    category = "G";
                }
                else
                {
                    category = "J";
                }
            }
            else
            {
                GetCategory();
            }

            Session["ExchangeRate"]        = MatchBxCommon.GetExchangeRate();
            TempData["TrendingTagsFooter"] = MatchBxCommon.GetTrendingTagsFooter();
            MultipleModel modelMul  = new MultipleModel();
            int           _loadmore = 0;

            JobCategoryId       = id.GetValueOrDefault();
            Session["JobCatId"] = JobCategoryId;
            dynamic model = new ExpandoObject();

            objJob.JobCategoryId = JobCategoryId;
            objJob.FromPage      = category;
            objJob.SortBy        = "H";
            if (Session["searchmodel"] != null && Session["FromDetails"] != null)
            {
                SearchCriteria _model = (SearchCriteria)Session["searchmodel"];
                objJob.TrendingTagsIdList = _model.populartags;
                objJob.SkillsList         = _model.topskills;

                ViewBag.budgetMin      = _model.budgetMin;
                ViewBag.MaxBudget      = _model.budgetMax;
                objJob.SortBy          = _model.sortorder;
                Session["searchmodel"] = null;
                Session["FromDetails"] = null;
            }
            else
            {
                objJob.TrendingTagsIdList = "0";
                objJob.SkillsList         = "0";
            }
            objJobList = MatchBxCommon.GenerateBadge(objJobMod.GetJobDetails(objJob).ToList().OrderByDescending(x => x.BudgetASP).ToList());
            //objJobList = MatchBxCommon.GenerateBadge(objJobMod.GetJobDetails(objJob).ToList().OrderByDescending(x => x.BudgetASP).ThenByDescending(x => x.Rownumber).ToList());


            TempData["JobList"] = objJobList;
            _TotalRecord        = objJobList.Count();
            if (_TotalRecord > _RecordDisplay)
            {
                _loadmore = 1;
            }
            else
            {
                _loadmore = 0;
            }
            objJobList.ForEach(s => s.Isloadmore   = _loadmore);
            objJobList.ForEach(s => s.BudgetASPInt = Convert.ToInt32(s.BudgetASP));
            model.Job           = objJobList.Take(_RecordDisplay).ToList();
            Session["Category"] = category;
            //if (category == "J")
            //{
            //    objJobList.ForEach(s => s.FromPage = "J");
            //    Session["Category"] = "J";
            //}
            //else {
            //    objJobList.ForEach(s => s.FromPage = "G");
            //    Session["Category"] = "G";
            //}
            objTrending.JobCategoryId = JobCategoryId;
            objTrending.FromPage      = category;
            objTrendingTagsList       = objTrendingMod.GetTrendingTags(objTrending);
            model.TrendingTags        = objTrendingTagsList;
            objTrendingTagsList.ForEach(s => s.Description = s.Description.Replace("#", ""));
            model.PopularTags        = objTrendingTagsList;
            objSkills.JobCategoryId  = JobCategoryId;
            Session["JobCategoryId"] = JobCategoryId;
            objSkills.FromPage       = category;
            model.skills             = objSkillsMod.GetTopSkills(objSkills);
            List <JobCategory> _JobcategoryList = new List <JobCategory>();
            JobCategoryModel   JobModel         = new JobCategoryModel();

            _JobcategoryList       = JobModel.GetList();
            Session["JobCategory"] = _JobcategoryList;
            model.messageSender    = 0;
            if (Request.QueryString["mailMessagId"] != null)
            {
                string _messageSender = Request.QueryString["mailMessagId"].ToString();
                model.messageSender     = Convert.ToInt32(_messageSender);
                Session["mailMessagId"] = _messageSender;
            }
            return(View("Index", model));
        }
Exemplo n.º 6
0
        //[SessionExpire]
        public ActionResult Details(int?id, string type = "")
        {
            TempData["TrendingTagsFooter"] = MatchBxCommon.GetTrendingTagsFooter();
            TempData["BidMessage"]         = "";
            TempData["BidAmount"]          = "";
            TempData["AXPRFeeAmt"]         = "0.00";
            TempData["AXPRFeeTotAmt"]      = "";
            TempData["BidAmountinDollar"]  = "";
            TempData["JobBiddingId"]       = "";
            Session["Expired"]             = "N";
            Session["FromDetails"]         = "Y";
            //if(Session["JobCategoryName"]==null || Session["JobCategoryName"].ToString()=="")
            //{
            //    Session["JobCategoryName"] = "";
            //}
            dynamic model = new ExpandoObject();
            //Session["ProfilePic"] = "/Content/images/client_pic_1.png";

            int jobid = id.GetValueOrDefault();

            Session["JobId"] = jobid;
            if (jobid != 0)
            {
                objJobList = MatchBxCommon.GenerateBadge(objJobMod.GetJobPost(jobid));
                if (objJobList.Count() > 0)
                {
                    ViewBag.MetaTag = HomeMetaTags(objJobList[0].JobTitle.ToString(), objJobList[0].JobDescription.ToString());

                    objJobList.FirstOrDefault().JobSkillsMappingList       = objJobMod.GetSkillsByJobId(jobid);
                    objJobList.FirstOrDefault().JobTrendingTagsMappingList = objJobMod.GetTagsByJobId(jobid);
                    objJob = objJobList.FirstOrDefault();
                    JobModel _ObjModel     = new JobModel();
                    decimal  exchangerate1 = MatchBxCommon.GetExchangeRate();
                    if (type == "A")
                    {
                        objJob.CurrentOffersList = _ObjModel.GetCurrentBidsForJob(new Job {
                            JobId = jobid
                        });
                        objJob.CurrentOffersList.ForEach(x => x.DollarCount = Math.Round(exchangerate1 * (x.BidAmount), 2));
                    }
                    else if (type == "C")
                    {
                        objJob.DeclinedOffersList = _ObjModel.GetDeclinedBidsForJob(new Job {
                            JobId = jobid
                        });
                        objJob.DeclinedOffersList.ForEach(x => x.DollarCount = Math.Round(exchangerate1 * (x.BidAmount), 2));
                    }
                    Session["JobPoster"] = objJob.UserId;

                    Session["JobCategory"]       = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(objJob.Category.ToLower());
                    Session["JobCategoryHeader"] = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(objJob.Category.ToLower());

                    if (Session["JobCategoryId"].ToString() == "0")
                    {
                        Session["JobCategoryName"] = CultureInfo.CurrentCulture.TextInfo.ToTitleCase("ALL JOBS".ToLower());
                    }
                    else
                    {
                        Session["JobCategoryName"] = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(objJob.Category.ToLower());
                    }

                    TimeSpan span     = objJob.JobCompletionDate.Subtract(DateTime.Now);
                    string   EndingIn = (span.Days + 1) + " DAYS, " + (span.Hours + 1) + " HOURS, " + span.Minutes + " MINS";
                    if (span.Days == 0 || objJob.JobStatus == "P")
                    {
                        Session["Expired"] = "N";
                        EndingIn           = (span.Days + 1) + " DAYS, " + Math.Abs(span.Hours + 1) + " HOURS, " + Math.Abs(span.Minutes) + " MINS";
                    }
                    else if (span.Days < 0 || span.Hours < 0 || span.Minutes < 0 || objJob.JobStatus == "A" || objJob.JobStatus == "C" || objJob.JobStatusSeeker == "C")
                    {
                        Session["Expired"] = "Y";
                    }
                    TempData["EndingIn"] = EndingIn;
                    if (Convert.ToInt32(Session["UserId"]) != objJob.UserId)
                    {
                        JobBidding _JobBidding = new JobBidding();
                        _JobBidding.UserId = Convert.ToInt32(Session["UserId"]);
                        _JobBidding.JobId  = objJob.JobId;

                        objBiddingList = objBiddingMod.LoadJobBiddingDetails(_JobBidding);
                        if (objBiddingList.Count() > 0)
                        {
                            decimal exchangerate = MatchBxCommon.GetExchangeRate();
                            TempData["BidMessage"]  = objBiddingList.FirstOrDefault().BidMessage;
                            TempData["BidAmount"]   = "$ " + (objBiddingList.FirstOrDefault().BidAmount *exchangerate).ToString("#,##0.00");
                            TempData["BidDuration"] = objBiddingList.FirstOrDefault().BidDuration;
                            decimal bid  = Convert.ToDecimal(objBiddingList.FirstOrDefault().BidAmount);
                            decimal perc = (Convert.ToDecimal(bid) * 3) / 100;
                            TempData["AXPRFeeAmt"] = perc.ToString("#,##0.00");

                            string totalfees = (bid - perc).ToString("#,##0.00");
                            TempData["AXPRFeeTotAmt"] = totalfees;

                            TempData["BidAmountinDollar"]   = objBiddingList.FirstOrDefault().BidAmount.ToString("#,##0.00");
                            TempData["JobBiddingId"]        = objBiddingList.FirstOrDefault().JobBiddingId;
                            TempData["TokenDistributionId"] = objBiddingList.FirstOrDefault().TokenDistributionId;
                            TempData["IsPendingStatus"]     = objBiddingList.FirstOrDefault().IsPending;
                        }
                        else
                        {
                            decimal exchangerate = MatchBxCommon.GetExchangeRate();
                            TempData["IsPendingStatus"] = "N";
                            TempData["BidAmount"]       = "$ " + (objJob.BudgetASP * exchangerate).ToString("#,##0.00");
                            TempData["BidDuration"]     = 0;
                            decimal bid  = Convert.ToDecimal(objJob.BudgetASP);
                            decimal perc = (Convert.ToDecimal(bid) * 3) / 100;
                            TempData["AXPRFeeAmt"] = perc.ToString("#,##0.00");

                            string totalfees = (bid - perc).ToString("#,##0.00");
                            TempData["AXPRFeeTotAmt"]     = totalfees;
                            TempData["BidAmountinDollar"] = objJob.BudgetASP.ToString("#,##0.00");
                        }
                    }

                    //objJob.ShareJob = shareJobObj.GetShareDetails(jobid, Convert.ToInt32(Session["UserId"]));
                    //if(objJob.ShareJob == null)
                    //{
                    //    objJob.ShareJob = new SocialMediaShare();
                    //    objJob.ShareJob.JobId = jobid;
                    //    objJob.ShareJob.UserId = Convert.ToInt32(Session["UserId"]);
                    //    objJob.ShareJob.FBShare = null;
                    //    objJob.ShareJob.TwitterShare = null;
                    //}
                }
            }
            return(View("Details", objJob));
        }