// GET: Souvenir public ActionResult Index() { ViewBag.Souv1 = new SelectList(SouvenirRepo.Get(), "Code", "Code"); ViewBag.Souv2 = new SelectList(SouvenirRepo.Get(), "Name", "Name"); ViewBag.Souv3 = new SelectList(SouvenirRepo.Get(), "M_Unit_Id", "Unit"); return(View()); }
public ActionResult DetailItem(int id) { ViewBag.Souvenir = new SelectList(SouvenirRepo.Get(), "Id", "Name"); List <SouvenirItemViewModel> model = SouvenirRequestRepo.GetItem(id); return(PartialView("_DetailItem", model)); }
public ActionResult AddItem() { ViewBag.Souvenir = new SelectList(SouvenirRepo.Get(), "Id", "Name"); SouvenirItemViewModel model = new SouvenirItemViewModel(); return(PartialView("_AddItem", model)); }
public ActionResult List() { return(PartialView("_List", SouvenirRepo.Get())); }