public Config Delete(Team team)
        {
            var config = GetList.FirstOrDefault(x => x.Team.Equals(team));

            if (config == null)
            {
                return(null);
            }
            base.Delete(config);
            UpdateDatabase();
            return(config);
        }
Esempio n. 2
0
 public Game FindByCode(string code)
 {
     return(GetList.FirstOrDefault(x => string.Equals(x.Code, code)));
 }
        public bool IsIpUsed(string ip)
        {
            var existingConfig = GetList.FirstOrDefault(x => string.Equals(x.RouterIpAddress, ip));

            return(existingConfig != null);
        }