Beispiel #1
0
        // GET: Tank
        public ActionResult Index()
        {
            _RefillService = new RefillTankService();
            var Unit = _RefillService.GetList();

            return(View(Unit));
        }
Beispiel #2
0
        public ActionResult Add(Core.Domain.RefillTank model)
        {
            _RefillService = new RefillTankService();
            int RecordID = _RefillService.Insert(model);

            if (RecordID > 0)
            {
                Stock.UpdateStockTank("DC", 1, RecordID, model.TankId, "tblRefillTank", "ID", false);
                if (TempData["ConfimationMsg"] == null)
                {
                    TempData["ConfimationMsg"] = "Tank Refill Successfully";
                }
            }
            return(RedirectToAction("Add"));
        }