public ChannelViewModel() { var channelService = new ChannelService(); var user = LoginService.User; if (user != null) { UserName = user.Name; channelService.GetAvailableByUserid(Channels, user.Id); IconPath = user.IconPath; } }