public ProcessPerfomanceDTO GetProcessPerfomanceByName(string name) { WMIPerfDataProcess wmiPerfDataProcess = _wmimanagers .WMIPerfDataProcessManager.GetWMIPerfDataProcessByName(name); return(wmiPerfDataProcess == null? null : _mapper .Map <WMIPerfDataProcess, ProcessPerfomanceDTO>(wmiPerfDataProcess)); }
public ProcessPerfomanceDTO GetProcessPerfomanceById(int id) { WMIPerfDataProcess wmiPerfDataProcess = _wmimanagers .WMIPerfDataProcessManager.GetWMIPerfDataProcessById(id); return(wmiPerfDataProcess == null? null : _mapper .Map <WMIPerfDataProcess, ProcessPerfomanceDTO>(wmiPerfDataProcess)); }