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))); }
public ActionResult Search(string search = "") { return(PartialView("_Search", TestTypeRepo.GetBySearch(search))); }
public ActionResult Create() { ViewBag.TestList = new SelectList(TestRepo.All(""), "id", "name"); ViewBag.Test_TypeList = new SelectList(TestTypeRepo.GetBySearch(""), "id", "name"); return(PartialView("_Create")); }