Exemplo n.º 1
0
 public ActionResult Create(Shipper shipper)
 {
     if (ModelState.IsValid)
     {
         shipperRepository.InsertOrUpdate(shipper);
         shipperRepository.Save();
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }