Beispiel #1
0
 public IActionResult Create(RoutingViewModel routing)
 {
     if (ModelState.IsValid)
     {
         _repository.Add(Mapper.Map <Routing>(routing));
         return(RedirectToAction("Index"));
     }
     return(View(routing));
 }
 public IActionResult Create(BusinessProcessViewModel businessProcess)
 {
     if (ModelState.IsValid)
     {
         _repository.Add(Mapper.Map <BusinessProcess>(businessProcess));
         return(RedirectToAction("Index"));
     }
     return(View(businessProcess));
 }