Пример #1
0
 public List <DeviceModel> GetNoLinkedDevices()
 {
     try
     {
         var devices = DeviceDAO.GetNoLinkedDevices();
         if (devices != null)
         {
             List <DeviceModel> rDevices = new List <DeviceModel>();
             foreach (var d in devices)
             {
                 rDevices.Add(new DeviceModel()
                 {
                     Id = d.Id, Name = d.Name, DeviceType = d.DeviceType.Type
                 });
             }
             return(rDevices);
         }
         return(null);
     }
     catch (Exception)
     {
         throw;
     }
 }