public async Task <IEnumerable <ProspectSearchCriteria> > GetProspectSearchCriteriaAsync() { IDBRepository dbObejct = FactoryClass.CreateDBRepositoryObject(); IEnumerable <ProspectSearchCriteria> prospectSearchCriteriaList = await dbObejct.GetProspectSearchCriteriaAsync(); return(prospectSearchCriteriaList); }
public async Task <bool> InsertProspectData(ProspectSummaryData prospectSummary) { try { IDBRepository dbObejct = FactoryClass.CreateDBRepositoryObject(); return(await dbObejct.CreateProspectDataAsync(prospectSummary)); } catch { return(false); } }