예제 #1
0
 private async Task <DataLayer.Entities.Tights> Get(ITightsIdentity tightsId)
 {
     //TODO
     if (tightsId == null)
     {
         throw new ArgumentNullException(nameof(tightsId));
     }
     return(await this.Context.Tights.Include(x => x.Supplier).Include(x => x.Buyer).FirstOrDefaultAsync(x => x.Id == tightsId.Id));
 }
예제 #2
0
 public Task <Tights> GetAsync(ITightsIdentity tights)
 {
     return(this.TightsDataAccess.GetAsync(tights));
 }
예제 #3
0
        public async Task <Tights> GetAsync(ITightsIdentity tightsId)
        {
            var result = await this.Get(tightsId);

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