// GET: Admin/JobsAdmin/Create public ActionResult Create() { var fu = new FunctionController(); var id = fu.CookieIDAd(); List <Job> job = db.Jobs.Where(n => n.user_id == id.user_id).ToList(); //if (id.employer_pageload == null) //{ // return Redirect("/Employer/UsersEmployer/PersonalPage"); //} //if (id.employer_amoutjob - job.Count == 0) //{ // return Redirect("/Employer/PayEmployer/Index"); //} ViewBag.exp_id = new SelectList(db.Exps, "exp_id", "exp_name"); ViewBag.wp_id = new SelectList(db.WorkPlaces, "wp_id", "wp_name"); ViewBag.user_id = new SelectList(db.Users, "user_id", "user_email"); ViewBag.type_id = new SelectList(db.TypeJobs, "type_id", "type_name"); return(View()); }