public InformationService()
 {
     this._foodAndDrinkDAO   = (FoodAndDrinkDAO) new FoodAndDrinkDAOImpl();
     this._orderDAO          = (OrderDAO) new OrderDAOImpl();
     this._orderItemDAO      = (OrderItemDAO) new OrderItemDAOImpl();
     this._orderPromotionDAO = (OrderPromotionDAO) new OrderPromotionDAOImpl();
     this._positionDAO       = (PositionDAO) new PositionDAOImpl();
     this._accountDAO        = (AccountDAO) new AccountDAOImpl();
     this._shipDAO           = (ShipDAO) new ShipDAOImpl();
     this._shipDetailDAO     = (ShipDetailDAO) new ShipDetailDAOImpl();
 }
Beispiel #2
0
 public ActionResult Delete(int id, FormCollection collection)
 {
     try
     {
         ShipDAO r = new ShipDAO();
         r.DeleteRecord(id);
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         return(RedirectToAction("Error", new { ErrorText = ex.Message }));
     }
 }
Beispiel #3
0
        public ActionResult Delete(int id)
        {
            ShipDAO r = new ShipDAO();

            return(View(r.getById(id)));
        }