public ActionResult Create(VacancyEditViewModel model)
 {
     if (ModelState.IsValid)
     {
         var user    = userRepository.GetCurrentUser(User);
         var vacancy = new Vacancy
         {
             Name        = model.Name,
             Author      = user,
             Description = model.Description,
             Time        = model.Time,
             Company     = model.Company,
             Requirments = model.Requirments,
             Salary      = model.Salary
         };
         vacancyRepository.Save(vacancy);
         return(RedirectToAction("Index"));
     }
     return(View(model));
 }