Exemplo n.º 1
0
        async void DoCreateCircleCommand()
        {
            int circle_id = await _mLearningService.CreateCircle(UserID, CircleName, CircleType);


            var circle = new circle_by_user {
                id = circle_id, name = CircleName, type = CircleType
            };

            CirclesList.Add(circle);

            //Register the Publisher as a user in a Circle
            _mLearningService.CreateObject <CircleUser>(new CircleUser {
                Circle_id = circle_id, User_id = UserID, created_at = DateTime.UtcNow, updated_at = DateTime.UtcNow
            }, c => c.id);
        }