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); }
public void AddNoReturn(UnitOfMeasureMinimal bllUnitOfMeasure) { ServiceRepository.AddNoReturn(_mapper.MapToDALMinimal(bllUnitOfMeasure)); }