public async Task <HardWareDto> GetSettings(string deviceCode, EnumHardWareType hardWareType) { var hardWare = await _hardWareRepository.GetSettings(deviceCode.Trim(), hardWareType); return(Mapper.Map <HardWareDto>(hardWare)); }
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); }