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)); }
public IActionResult Delete(string id) { var Save = _saveService.Get(id); if (Save == null) { return(NotFound()); } _saveService.Delete(Save.Id); return(NoContent()); }