public ActionResult Edit(DiscountVm obj) { try { obj.FlyDiscount.Deleted = obj.Deleted; obj.FlyDiscount.EndDate = DateTime.Now; _repositryBase.Edit(obj.FlyDiscount); return(RedirectToAction("Index")); } catch (Exception) { throw; } }
public DiscountController() { this._repositryBase = new DiscountDAO(); _vm = new DiscountVm(); }