public async Task <StripDomain> CreateAsync(StripDomain stripDomain) { StripEntity stripEntity = Mapper.Map <StripEntity>(stripDomain); EntityEntry <StripEntity> entity = await DbSet.AddAsync(stripEntity); return(Mapper.Map <StripDomain>(entity.Entity)); }
public async Task <StripDomain> GetAsync(int number) { StripEntity strip = await DbSet.SingleOrDefaultAsync(strip => strip.Number == number); return(Mapper.Map <StripDomain>(strip)); }