예제 #1
0
 public ActionResult Edit(long id)
 {
     ViewBag.TestList      = new SelectList(TestRepo.All(""), "id", "name");
     ViewBag.Test_TypeList = new SelectList(TestTypeRepo.GetBySearch(""), "id", "name");
     return(PartialView("_Edit", Document_TestRepo.ById(id)));
 }
예제 #2
0
 public ActionResult Search(string search = "")
 {
     return(PartialView("_Search", TestTypeRepo.GetBySearch(search)));
 }
예제 #3
0
 public ActionResult Create()
 {
     ViewBag.TestList      = new SelectList(TestRepo.All(""), "id", "name");
     ViewBag.Test_TypeList = new SelectList(TestTypeRepo.GetBySearch(""), "id", "name");
     return(PartialView("_Create"));
 }