Ejemplo n.º 1
0
 public ActionResult Create([Bind(Exclude = "Id")] Transport transport)
 {
     if (Tdao.AddTransport(transport))
     {
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View("Create"));
     }
 }
Ejemplo n.º 2
0
 public ActionResult Create([Bind(Exclude = "ID")] Cars
                            auto)
 {
     try
     {
         if (transportDAO.AddTransport(auto))
         {
             return(RedirectToAction("Index"));
         }
         else
         {
             return(View("Create"));
         }
     }
     catch
     {
         return(View("Create"));
     }
 }
Ejemplo n.º 3
0
 public Guid CreateTransport(TransportDTO transport)
 {
     return(transportDAO.AddTransport(transport));
 }