コード例 #1
0
        public System.Net.Http.HttpResponseMessage FinancialBatchImport([FromBody] List <Rock.Slingshot.Model.FinancialBatchImport> financialBatchImports, string foreignSystemKey)
        {
            var responseText = new Slingshot.BulkImporter().BulkFinancialBatchImport(financialBatchImports, foreignSystemKey);

            return(ControllerContext.Request.CreateResponse <string>(HttpStatusCode.Created, responseText));
        }
コード例 #2
0
        public System.Net.Http.HttpResponseMessage NoteImport([FromBody] List <Rock.Slingshot.Model.NoteImport> noteImports, int entityTypeId, string foreignSystemKey, bool groupEntityIsFamily)
        {
            var responseText = new Slingshot.BulkImporter().BulkNoteImport(noteImports, entityTypeId, foreignSystemKey, groupEntityIsFamily);

            return(ControllerContext.Request.CreateResponse <string>(HttpStatusCode.Created, responseText));
        }