예제 #1
0
        public ActionResult Create()
        {
            ViewBag.CategoryId = new SelectList(categoryService.GetCategories(), "CategoryId", "CategoryName");
            ViewBag.CustomerId = new SelectList(customService.GetCustomers(), "CustomerId", "CustomerFirstName");

            var newVacancy = new VacancyViewModel();

            return(View(newVacancy));
        }