public async Task <ActionResult> ApplicationCreate(Guid jobOfferId) { var jobOffer = await JobOfferFacade.GetJobOfferAsync(jobOfferId); var model = new ApplicationDto { JobOffer = jobOffer, JobOfferId = jobOfferId }; return(View(model)); }
public async Task <ActionResult> JobOfferDetail(Guid id) { var applicant = await ApplicantFacade.GetApplicantAccordingToUsernameAsync(User.Identity.Name); var model = new JobOfferDetailModel { JobOffer = await JobOfferFacade.GetJobOfferAsync(id), AlreadyApplied = await ApplicationFacade.CheckIfApplied(applicant.Id, id), AlreadyFavorite = await JobOfferFacade.CheckIfFavorite(applicant.Id, id) }; return(View(model)); }
public async Task <ActionResult> JobOfferEdit(Guid id) { var jobOffer = await JobOfferFacade.GetJobOfferAsync(id); var model = new JobOfferEditModel { JobOffer = jobOffer, Keywords = new List <bool>() }; for (int i = 0; i < Enum.GetNames(typeof(Keyword)).Length; i++) { model.Keywords.Add(jobOffer.KeywordNumbers.Contains(i)); } return(View(model)); }