public ActionResult Edit(string id) { var query = couponService.GetByID(id); var couponVM = new CouponListViewModel() { CouponId = query.CouponId, Desciption = query.Desciption, StartTime = query.StartTime, EndTime = query.EndTime, Title = query.Title }; ViewBag.CouponTitle = "編輯優惠券"; return(View("CouponForm", couponVM)); }