// GET: Jobs/Create
        public async Task <IActionResult> Create()
        {
            var completedJobs = await _jobTemplateService.GetAllCompletedJobsAsync();

            ViewData["JobTemplateId"] = new SelectList(completedJobs, "Id", "Name");
            ViewData["CategoryId"]    = new SelectList(await _jobCategoryService.GetAllAsync(), "Id", "Name");
            return(View());
        }
 // GET: JobCategories
 public async Task <IActionResult> Index()
 {
     return(View(await _jobCategoryService.GetAllAsync()));
 }
Esempio n. 3
0
 // GET: JobTemplates/Create
 public async Task <IActionResult> Create()
 {
     ViewData["CategoryId"] = new SelectList(await _jobCategoryService.GetAllAsync(), "Id", "Name");
     return(View());
 }