示例#1
0
        public async Task <IEnumerable <ProspectSearchCriteria> > GetProspectSearchCriteriaAsync()
        {
            IDBRepository dbObejct = FactoryClass.CreateDBRepositoryObject();
            IEnumerable <ProspectSearchCriteria> prospectSearchCriteriaList = await dbObejct.GetProspectSearchCriteriaAsync();

            return(prospectSearchCriteriaList);
        }
示例#2
0
 public async Task <bool> InsertProspectData(ProspectSummaryData prospectSummary)
 {
     try
     {
         IDBRepository dbObejct = FactoryClass.CreateDBRepositoryObject();
         return(await dbObejct.CreateProspectDataAsync(prospectSummary));
     }
     catch
     {
         return(false);
     }
 }