コード例 #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);
 }
コード例 #2
0
 public ActionResult ClientNewOrder(string username,string carNumber)
 {
     ClientNewOrder model = new ClientNewOrder();
     return View(model);
 }