public List <Device> GetDevicesFromUser(int userId, bool checkPublished = false, bool published = true) { var devices = _dao.GetDevicesFromUser(userId, checkPublished, published); if (devices == null) { return(new List <Device>()); } return(devices); }