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); }
public ActionResult ClientNewOrder(string username,string carNumber) { ClientNewOrder model = new ClientNewOrder(); return View(model); }