Esempio n. 1
0
        public object Get()
        {
            TableOperation operation = TableOperation.Retrieve <ColorConfig>("config", "color");
            ColorConfig    colors    = _table.Execute(operation).Result as ColorConfig;

            return(new { spiderColor = colors.Spider, beamColor = colors.Beam });
        }
Esempio n. 2
0
        public void Post([FromBody] ColorConfig colors)
        {
            TableOperation operation = TableOperation.InsertOrMerge(colors);

            _table.Execute(operation);
        }