Example #1
0
        public async Task <ActionResult> JobOfferEdit(JobOfferEditModel model)
        {
            await JobOfferFacade.EditJobOfferAsync(model.JobOffer);

            await JobOfferFacade.EditJobOffersKeywordsAsync(model.JobOffer.Id, model.Keywords);

            return(RedirectToAction("JobOfferList", "Company"));
        }
Example #2
0
        public async Task <ActionResult> JobOfferCreate(JobOfferEditModel model)
        {
            var company = await CompanyFacade.GetCompanyAccordingToUsernameAsync(User.Identity.Name);

            model.JobOffer.CompanyId = company.Id;
            Guid id = await JobOfferFacade.CreateJobOfferAsync(model.JobOffer);

            await JobOfferFacade.EditJobOffersKeywordsAsync(id, model.Keywords);

            return(RedirectToAction("JobOfferList", "Company"));
        }