Exemplo n.º 1
0
 public ActionResult ClientNewOrder(ClientNewOrder neworder)
 {
     if (ModelState.IsValid)
     {
         var user = Membership.GetUser(neworder.Username);
         neworder.ClientID = Guid.Parse(user.ProviderUserKey.ToString());
         Order ord = new Order();
         neworder.AssignTo(ord);
         OrderAPI.AddOrder(ord);
         return RedirectToAction("NewOrderSuccessfull", "Home");
     }
     return View(neworder);
 }
Exemplo n.º 2
0
 public ActionResult ClientNewOrder(string username,string carNumber)
 {
     ClientNewOrder model = new ClientNewOrder();
     return View(model);
 }