Esempio n. 1
0
        public ActionResult Wish()
        {
            var model = new WishOrderModel();

            model.CustomerId = this.CustomerId;
            return(View(model));
        }
Esempio n. 2
0
 public ActionResult Wish(WishOrderModel model)
 {
     if (ModelState.IsValid)
     {
         var entity = model.MapTo <WishOrder>();
         _wishService.InsertWishOrder(entity);
         return(RedirectToAction("Center"));
     }
     return(View(model));
 }