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