public async Task <ActionResult> Edit(int id, JobOfferCreateViewModel model) { var currentEmployer = await EmployerFacade.GetEmployerByEmail(User.Identity.Name); if (ModelState.IsValid) { model.JobOfferCreateDto.EmployerId = currentEmployer.Id; await JobOfferFacade.EditJobOffer(model.JobOfferCreateDto, currentEmployer); return(RedirectToAction("OffersOfCurrentEmployer")); } model.AllSkills = await SkillSelectListHelper.Get(); model.Employer = currentEmployer; return(View(model)); }