예제 #1
0
        public List <int> GetMachinePanels(int?machineModelId)
        {
            var result = new List <int>();

            try
            {
                result = _panelRepository.Get(p => p.ParameterMachine.Any(f => f.MachineModelId == machineModelId)).Select(a => a.Id).Distinct().ToList();
            }
            catch (Exception ex)
            {
                var errMessage = string.Format(ex.GetStringLog(), machineModelId.ToString());
                LogService.WriteLog(errMessage, LogService.TypeLevel.Error, ex);
            }
            return(result);
        }