public async Task <IEnumerable <EmployerResource> > GetAllByFreelancerIdAsync(int freelancerId) { var employers = await _employerService.ListByFreelancerId(freelancerId); var resources = _mapper.Map <IEnumerable <Employer>, IEnumerable <EmployerResource> >(employers); return(resources); }