Beispiel #1
0
 private async Task <DataLayer.Entities.Buyer> Get(IBuyerIdentity buyer)
 {
     if (buyer == null)
     {
         throw new ArgumentNullException(nameof(buyer));
     }
     return(await this.Context.Buyer.FirstOrDefaultAsync(x => x.Id == buyer.Id));
 }
Beispiel #2
0
 public Task <Buyer> GetAsync(IBuyerIdentity id)
 {
     return(this.BuyerDAL.GetAsync(id));
 }
Beispiel #3
0
 public Task <Buyer> GetAsync(IBuyerIdentity buyer)
 {
     return(this.BuyerDataAccess.GetAsync(buyer));
 }
Beispiel #4
0
        public async Task <Domain.Buyer> GetAsync(IBuyerIdentity buyerId)
        {
            var result = await this.Get(buyerId);

            return(this.Mapper.Map <Domain.Buyer>(result));
        }