// GET: Tank public ActionResult Index() { _TankService = new TankService(); var Category = _TankService.GetList(); return(View(Category)); }
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()); }