Exemple #1
0
    protected void loadTargetObject(IConciergeAPIService proxy)
    {
        targetJobPosting = LoadObjectFromAPI <msJobPosting>(ContextID);

        if (targetJobPosting != null && !string.IsNullOrWhiteSpace(targetJobPosting.Location))
        {
            targetJobPostingLocation = LoadObjectFromAPI <msJobPostingLocation>(targetJobPosting.Location);
        }
    }
    /// <summary>
    /// Initializes the target object for the page
    /// </summary>
    /// <remarks>Many pages have "target" objects that the page operates on. For instance, when viewing
    /// an event, the target object is an event. When looking up a directory, that's the target
    /// object. This method is intended to be overriden to initialize the target object for
    /// each page that needs it.</remarks>
    protected override void InitializeTargetObject()
    {
        base.InitializeTargetObject();

        targetJobPosting = MultiStepWizards.PostAJob.JobPosting;

        if (targetJobPosting == null)
        {
            GoTo("~/careercenter/CreateEditJobPosting.aspx");
            return;
        }

        if (Post)
        {
            Redirect();
        }

        if (!string.IsNullOrWhiteSpace(targetJobPosting.Location))
        {
            targetJobPostingLocation = LoadObjectFromAPI <msJobPostingLocation>(targetJobPosting.Location);
        }
    }