예제 #1
0
        async void DoAddConsumerCommand(consumer_by_institution consumer)
        {
            //Update Local List
            var consumerbycircle = new consumer_by_circle {
                name = consumer.name, lastname = consumer.lastname, username = consumer.username
            };

            ConsumersCircleList.Add(consumerbycircle);



            //Add it to a Circle
            _mLearningService.AddUserToCircle(consumer.id, CircleID);
        }
        async void DoRegisterToCircleCommand(Circle circle)
        {
            await _mLearningService.AddUserToCircle(SessionService.GetUserId(), circle.id);

            ShowViewModel <MainViewModel>();
        }