示例#1
0
        public async Task <bool> GetUpdateJobProfileRepo()
        {
            var jobProfiles = await jobProfileService.GetJobProfilesAsync();

            foreach (var jobProfile in jobProfiles)
            {
                await repository.UpdateJobProfileAsync(jobProfile);
            }

            return(true);
        }
示例#2
0
 public async Task <ActionResult> GetManyAsync()
 {
     return(await GetResponseAsync(async() => (await _jobProfileService.GetJobProfilesAsync(new JobProfile()))
                                   .GetMappedResponse <IEnumerable <JobProfile>, IEnumerable <JobProfile> >(_mapper)));
 }