public IList <DataContracts.Masters.DC_Activity_SupplierProductMapping_CA> GetActSupplierProdMapping_CA(DataContracts.Masters.DC_Activity_SupplierProductMapping_CA_RQ RQ) { using (BL_Activity objBL = new BL_Activity()) { List <DC_Activity_SupplierProductMapping_CA> searchResults = new List <DC_Activity_SupplierProductMapping_CA>(); searchResults = objBL.GetActSupplierProdMapping_CA(RQ); if (searchResults == null) { throw new WebFaultException <string>("No records found.", System.Net.HttpStatusCode.NoContent); } return(searchResults); } }