public SystemService GetService(string name)
 {
     var service = _entities.SystemServiceSet.Where(s => s.Name.Equals(name)).FirstOrDefault();
     if (service == null)
     {
         var _service = new SystemService();
         _service.Name = name;
         _entities.AddToSystemServiceSet(_service);
         _entities.SaveChanges();
         service = _service;
     }
     return service;
 }
 public bool RegisterService(SystemService system, int serviceId)
 {
     system.astra_Services.Add(_entities.ServiceSet.Where(s => s.ServiceId == serviceId).FirstOrDefault());
     _entities.SaveChanges();
     return true;
 }