Example #1
0
        public async Task <HttpResponseMessage> Post([FromBody] DataDescriptor descriptor)
        {
            try
            {
                DataStoreContext context = HttpContext.RequestServices.GetService(typeof(DataStoreContext)) as DataStoreContext;

                context.PostData(descriptor.Table_Name, descriptor.Data);

                return(new HttpResponseMessage(HttpStatusCode.Accepted));
            } catch (Exception e)
            {
                throw e;
            }
        }