public List <CompanyLocation_Dto> GetCompanyLocations(Guid companyId) { return(ObjectMapper.Map <List <CompanyLocation>, List <CompanyLocation_Dto> >(LocationsRepository.WithDetails(x => x.Location).Where(x => x.CompanyId == companyId).ToList())); }