public async Task <int> Delete([FromUri] string grouping, [FromUri] string name) { var processor = GetAzureProcessor(); ExtensionEntity entity = new ExtensionEntity(name, grouping); entity.ETag = "*"; var result = await processor.DeleteFromTable("Extension", entity); return(result); }
//public async void Post([FromBody]string name, [FromBody]string grouping, [FromBody]string color, [FromBody]string longName) public async Task <int> Post([FromBody] ExtensionEntity data) { if (data.DisplayId == Guid.Empty) { data.DisplayId = Guid.NewGuid(); } var processor = GetAzureProcessor(); var ret = await processor.CreateTable("Extension"); return(await processor.AddToTable("Extension", data)); }