public JsonResult GetAllLocationMaster() { IEnumerable <SelectListItem> locationList = new List <SelectListItem>(); GetAllTests getAllTests = new GetAllTests(locationMasterService, iUnitOfWork); locationList = getAllTests.GetAllLocationMasters(); return(Json(locationList, JsonRequestBehavior.AllowGet)); }
public JsonResult GetAllTest(string name = null) { IEnumerable <SelectListItem> testsList = new List <SelectListItem>(); GetAllTests getAllTests = new GetAllTests(testService, iUnitOfWork, testMasterService); testsList = getAllTests.GetAllTest(name); return(Json(testsList, JsonRequestBehavior.AllowGet)); }
public JsonResult GetAllPartMaster() { IEnumerable <SelectListItem> testsList = new List <SelectListItem>(); GetAllTests getAllTests = new GetAllTests(partMasterService, iUnitOfWork); testsList = getAllTests.GetAllPartMasters(); return(Json(testsList, JsonRequestBehavior.AllowGet)); }