public string GetValueByName(string name) { Setting setting = repo.Get().Where(s => (s.Application == application || s.Application == 0)).OrderByDescending(s => s.Application) .FirstOrDefault(s => s.Name == name); return(setting != null ? setting.Value : string.Empty); }
public Interval GetIntervalByType(FCCLTestType testType) { return(repo.Get().Where(s => (s.Application == application || s.Application == 0)).OrderByDescending(s => s.Application) .FirstOrDefault(s => s.Type == (int)testType)); }
public Machine GetMachineByName(string name) { return(repo.Get().Where(m => (m.Application == application || m.Application == 0)).OrderByDescending(m => m.Application).FirstOrDefault(m => m.Name == name)); }