예제 #1
0
 public IActionResult Create(Programs program)
 {
     if (ModelState.IsValid)
     {
         programService.Save(program);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }