Ejemplo n.º 1
0
        public static async Task SendToDB([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestMessage req, ILogger log)
        {
            var postBody = req.Content.ReadAsAsync <Regulation>().Result;

            _mongoUtility.SetCollection(postBody.CollectionName);
            _mongoUtility.InsertOne(postBody);
        }