Esempio n. 1
0
        // GET: Admin/Coupons/Edit/5
        public async Task <ActionResult> Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Coupon coupon = await _coupon.GetByIdAsync(id);

            if (coupon == null)
            {
                return(HttpNotFound());
            }
            return(View(coupon));
        }