public ICollection <ChatDTO> GetChatsOfUser(UserInfoDTO dto)
        {
            var user = _userConverter.ToBusinessEntity(dto);
            var list = UserProvider.GetChatsOfUser(user);

            return(_chatConverter.ToDataTransferEntityList(list));
        }
        /// <summary>
        /// Get list of chats, this user has acces to them
        /// </summary>
        /// <param name="id"></param>
        /// <returns>List of chats</returns>
        public IList <ChatDTO> GetChatsOfUser(int id)
        {
            Logger.log.Debug("at WCFService.UserService.GetChatsOfUser");
            var list = UserProvider.GetChatsOfUser(new User()
            {
                Id = id
            });

            return(_chatConverter.ToDataTransferEntityList(list.ToList()));
        }