Exemple #1
0
        //extracts the charity organisations from the database and converts to the clone model
        public List <BCharOrg> getBCharOrgList()
        {
            Mediator m = new Mediator();

            GetCharOrgList getCharOrgList = new GetCharOrgList();

            List <CharOrg> charOrgList = m.getCharOrgListHandler.Handle(getCharOrgList).response;

            List <BCharOrg> bCharOrgList = new List <BCharOrg>();

            foreach (CharOrg c in charOrgList)
            {
                bCharOrgList.Add(convertToBCharOrg(c));
            }
            return(bCharOrgList);
        }
 public GetCharOrgListResponse Handle(GetCharOrgList query)
 {
     return(new GetCharOrgListResponse(query.query()));
 }