예제 #1
0
        public void SaveAndDelete()
        {
            var campaign = "campaign";
            var name     = "save2";
            var data1    = new DataContainer {
                value = 42
            };

            Assert.True(_service.Save(campaign, name, data1));
            Assert.True(_service.Delete(campaign, name));
        }
예제 #2
0
        public IActionResult Delete(string id)
        {
            var Save = _saveService.Get(id);

            if (Save == null)
            {
                return(NotFound());
            }
            _saveService.Delete(Save.Id);
            return(NoContent());
        }