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)); }
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)); }