Exemplo n.º 1
0
 public IActionResult Create([Bind("Id,ApplicantId,RoleId")] Job job)
 {
     if (ModelState.IsValid)
     {
         _jobRepository.AddNewJob(job);
         return(RedirectToAction(nameof(Index)));
     }
     return(View(job));
 }