private string GetJobSearchPublicUrl(JobSearch j, bool includePublicCode = true)
 {
     return ConfigurationManager.AppSettings["CommonJobs/PublicSiteUrl"].AppendIfDoesNotEndWith("/")
            + ConfigurationManager.AppSettings["CommonJobs/PublicSitePostulantBaseUrl"].AppendIfDoesNotEndWith("/")
            + RavenSession.ExtractNumericIdentityPart(j).ToString().AppendIfDoesNotEndWith("/")
            + ((string.IsNullOrEmpty(j.PublicCode) || !includePublicCode)
                 ? string.Empty
                 : j.PublicCode
             );
 }
 public JsonNetResult Post(JobSearch jobSearch)
 {
     RavenSession.Store(jobSearch);
     return Get(jobSearch.Id);
 }
Ejemplo n.º 3
0
 private void PrepareJobSearchView(JobSearch jobSearch)
 {
     var md = new MarkdownDeep.Markdown();
     ViewBag.JobSearchId = jobSearch.Id;
     ViewBag.Title = jobSearch.Title;
     ViewBag.PublicNotes = new MvcHtmlString(md.Transform(jobSearch.PublicNotes));
 }
 public ActionResult Create()
 {
     var newJobSearch = new JobSearch();
     RavenSession.Store(newJobSearch);
     return RedirectToAction("Edit", new { id = newJobSearch.Id });
 }
 private void PrepareJobSearchView(JobSearch jobSearch)
 {
     var md = new MarkdownDeep.Markdown();
     ViewBag.JobSearchId = jobSearch.Id;
     ViewBag.Title = jobSearch.Title;
     ViewBag.PublicNotes = new MvcHtmlString(md.Transform(jobSearch.PublicNotes));
     ViewBag.TechnicalSkillLevels = TechnicalSkillLevelExtensions.GetValues();
 }