public IList <DC_Activity_Contact> GetActivityContacts(string Activity_Flavour_Id, string DataKey_Id) { using (BL_Activity objBL = new BL_Activity()) { List <DC_Activity_Contact> searchResults = new List <DC_Activity_Contact>(); searchResults = objBL.GetActivityContacts(Guid.Parse(Activity_Flavour_Id), Guid.Parse(DataKey_Id)); if (searchResults == null) { throw new WebFaultException <string>("No records found.", System.Net.HttpStatusCode.NoContent); } return(searchResults); } }