Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 public DiscountController()
 {
     this._repositryBase = new DiscountDAO();
     _vm = new DiscountVm();
 }