public override async Task <List <CompanyRole> > AllAsync()
 {
     return(await RepositoryDbSet
            .Include(c => c.Company)
            .Include(r => r.CRole)
            .Select(e => CompanyRoleMapper.MapFromDomain(e)).ToListAsync());
 }
        public async Task <CompanyRole> FindAllPerEntity(int id)
        {
            var companyRole = await RepositoryDbSet
                              .Include(c => c.Company)
                              .Include(r => r.CRole)
                              .FirstOrDefaultAsync(m => m.Id == id);

            return(CompanyRoleMapper.MapFromDomain(companyRole));
        }