public JsonResult GetSupplier(string searchTerm, int pageSize, int pageNumber) { var select2Repository = new Select2Repository(); var result = select2Repository.GetSelect2PagedResult(searchTerm, pageSize, pageNumber, "SUPPLIER"); return(Json(result, JsonRequestBehavior.AllowGet)); }
public JsonResult GetPackaging(string searchTerm, int pageSize, int pageNumber) { var select2Repository = new Select2Repository(); var result = select2Repository.GetSelect2PagedResult(searchTerm, pageSize, pageNumber, "PACKAGING"); return(Json(result, JsonRequestBehavior.AllowGet)); }