public List <GetAdGiverArcMaterialsForSearchResult> GetSearchedArcMaterialsForListView(long?categoryID, string userID, string matCode, DateTime?fD, DateTime?tD) { try { OiiOHaatDCDataContext db = DatabaseHelper.GetDataModelDataContext(); var materialArcList = db.GetAdGiverArcMaterialsForSearch(categoryID, userID, matCode, fD, tD).ToList(); return(materialArcList); } catch (Exception ex) { throw new Exception(ex.Message, ex); } }