Пример #1
0
        public IActionResult Pull([FromBody] Model model)
        {
            var acls     = new WorkspaceAccessControlLists(this.allors.Session.GetUser());
            var response = new PullResponseBuilder(acls, this.TreeService);

            var organisationContactRelationship = (OrganisationContactRelationship)this.allors.Session.Instantiate(model.Id);

            response.AddObject("organisationContactRelationship", organisationContactRelationship);

            response.AddObject("contact", organisationContactRelationship.Contact);

            var locales = new Locales(this.allors.Session).Extent();

            response.AddCollection("locales", locales);

            var genders = new GenderTypes(this.allors.Session).Extent();

            response.AddCollection("genders", genders);

            var salutations = new Salutations(this.allors.Session).Extent();

            response.AddCollection("salutations", salutations);

            var contactKinds = new OrganisationContactKinds(this.allors.Session).Extent();

            response.AddCollection("organisationContactKinds", contactKinds);

            return(this.Ok(response.Build()));
        }
Пример #2
0
        static void Main(string[] args)
        {
            var s = new Salutations(new FileMessageWriter("output.txt"));

            s.Exclaim();
        }