public ActionResult Index(BatchSearchCriteria model) { var batches = _batchManager.GetBatchBySearch(model); if (batches == null) { batches = new List <Batch>(); } model.OrganizationListItem = GetOrganizationList(); model.ListOfBatch = batches; return(View(model)); }
//Index and Batch Search public ActionResult Index(BatchSearchCriteria model) { var batch = _batchManager.GetBatchBySearch(model); if (batch == null) { batch = new List <Batch>(); } model.ListOfBatch = batch; return(View(model)); }