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)); }
public Task <Tights> GetAsync(ITightsIdentity tights) { return(this.TightsDataAccess.GetAsync(tights)); }
public async Task <Tights> GetAsync(ITightsIdentity tightsId) { var result = await this.Get(tightsId); return(this.Mapper.Map <Tights>(result)); }