public ActionResult Delete(TestTypeViewModel model) { ResponseResult result = TestTypeRepo.Delete(model); return(Json(new { success = result.Success, message = result.ErrorMessage, entity = result.Entity }, JsonRequestBehavior.AllowGet)); }
public ActionResult Delete(long id) { return(PartialView("_Delete", TestTypeRepo.ById(id))); }
public ActionResult Edit(long id) { return(PartialView("_Edit", TestTypeRepo.ById(id))); }
public ActionResult Search(string search = "") { return(PartialView("_Search", TestTypeRepo.GetBySearch(search))); }
public ActionResult List() { return(PartialView("_List", TestTypeRepo.All())); }
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 Create() { ViewBag.TestList = new SelectList(TestRepo.All(""), "id", "name"); ViewBag.Test_TypeList = new SelectList(TestTypeRepo.GetBySearch(""), "id", "name"); return(PartialView("_Create")); }