Пример #1
0
        public async Task <HardWareDto> GetSettings(string deviceCode, EnumHardWareType hardWareType)
        {
            var hardWare = await _hardWareRepository.GetSettings(deviceCode.Trim(), hardWareType);

            return(Mapper.Map <HardWareDto>(hardWare));
        }
Пример #2
0
        public async Task <HardWare> GetSettings(string deviceCode, EnumHardWareType hardWareType)
        {
            var hardWare = await _dbContext.HardWares.Where(a => a.DeviceCode == deviceCode && a.HardWareType == hardWareType).FirstOrDefaultAsync();

            return(hardWare);
        }