public IEnumerable <CmnBatch> GetAllBatch(int?pageNumber, int?pageSize, int?IsPaging) { IEnumerable <CmnBatch> listBatch = null; try { listBatch = objDDLService.GetAllBatch(pageNumber, pageSize, IsPaging); } catch (Exception e) { e.ToString(); } return(listBatch); }