private async Task <CarSharing.DataAccess.Entities.Company> Get(ICompanyIdentity company)
 {
     if (company == null)
     {
         throw new ArgumentNullException(nameof(company));
     }
     return(await this.Context.Company.FirstOrDefaultAsync(x => x.Id == company.Id));
 }
        public async Task <Company> GetAsync(ICompanyIdentity company)
        {
            var result = await this.Get(company);

            return(this.Mapper.Map <Company>(result));
        }
 public Task <Company> GetAsync(ICompanyIdentity company)
 {
     return(this.CompanyDataAccess.GetAsync(company));
 }