public object GetSearchedArcMaterialsForListView(long?categoryID, long?pstedByID, string matCode, DateTime?fD, DateTime?tD) { try { OiiOHaatDCDataContext db = DatabaseHelper.GetDataModelDataContext(); var materialList = db.GetArcMaterialsForSearch(categoryID, pstedByID, matCode, fD, tD).ToList(); return(materialList); } catch (Exception ex) { throw new Exception(ex.Message, ex); } }