public ActionResult sendinvite(object values)//发送面试邀请
        {
            var jobSeekId = Convert.ToInt32(values);
            var job       = JobSeek.Select(jobSeekId);
            var userid    = Convert.ToInt32(CookieManager.GetCookie("userId"));

            this.ViewData["Company"] = Company.Select(item => item.UserId == userid);
            return(View(job));
        }
        public ActionResult Detail(string city, string smallcategory, int?region, int?circle)
        {
            bool ShowContactInfo = false;
            var  strUserId       = CookieManager.GetCookie("userId");

            if (!string.IsNullOrWhiteSpace(strUserId))
            {
                var UserId    = Convert.ToInt32(strUserId);
                var jobSeekId = Convert.ToInt32(this.RouteData.Values["Id"]);
                var job       = JobSeek.Select(jobSeekId);
                var favorite  = ResumeFavorite.SelectAllByUserId(UserId).FirstOrDefault(item => item.ResumeId == job.Resume.Id);
                if (favorite != null)//如果用户已下载该简历,则显示联系方式.
                {
                    ShowContactInfo = true;
                }
            }
            this.ViewData["Favorite"] = ShowContactInfo;
            base.InitDetail <JobSeek>();
            return(View("detail"));
            //return View("detail_" + smallcategory);
        }