Beispiel #1
0
        // GET: Tank
        public ActionResult Index()
        {
            _TankService = new TankService();
            var Category = _TankService.GetList();

            return(View(Category));
        }
Beispiel #2
0
 public ActionResult Add()
 {
     _TankService = new TankService();
     ViewBag.Tank = new SelectList(_TankService.GetList(), "ID", "Name");
     if (TempData["ConfimationMsg"] != null)
     {
         string msg = Convert.ToString(TempData["ConfimationMsg"]);
         ModelState.AddModelError("ConfimationMsg", msg);
     }
     return(View());
 }