예제 #1
0
        public static CommitteeList ToCommitteeList(this List <Models.Committee> committee, Controllers.BaseFacebookController controller)
        {
            CommitteeList results = new CommitteeList();

            for (int i = 0; i < committee.Count; i++)
            {
                Models.Member member = controller.GetMember(committee[i].RowKey);
                results.Members.Add(new CommitteeSingle()
                {
                    Name = member.Name, Title = committee[i].Title
                });
            }
            return(results);
        }
예제 #2
0
 public static string Serialise(this CommitteeList committeeList)
 {
     return(Newtonsoft.Json.JsonConvert.SerializeObject(committeeList));
 }