コード例 #1
0
        public async Task <UnitOfMeasureMinimal> FindAsyncMinimal(int id, object?userId = null, bool noTracking = true)
        {
            var query        = PrepareQuery(userId, noTracking);
            var domainEntity = await query
                               .FirstOrDefaultAsync(c => c.Id.Equals(id));

            var result = _mapper.MapToDALMinimal(domainEntity);

            return(result);
        }
コード例 #2
0
 public void AddNoReturn(UnitOfMeasureMinimal bllUnitOfMeasure)
 {
     ServiceRepository.AddNoReturn(_mapper.MapToDALMinimal(bllUnitOfMeasure));
 }