// // GET: /MaterialManagement/StorageOfSupplementaryMaterial/ public ActionResult Index() { var model = new StorageOfSupplementMaterialSearchViewModel { GridSupplementaryMaterial = GenerateGrid() }; return(View(model)); }
public ActionResult SearchByName(StorageOfSupplementMaterialSearchViewModel model, GridSettings gridSettings) { if (string.IsNullOrEmpty(gridSettings.SortField)) { gridSettings.SortField = "F15_SubMaterialCode"; gridSettings.SortOrder = SortOrder.Asc; } var result = _storageOfSupplementaryMaterialDomain.SearchCriteria(model.SubMaterialCode, gridSettings); if (!result.IsSuccess) { return(Json(null)); } return(Json(result.Data)); }