Ejemplo n.º 1
0
        public async Task <ActionResult <IDictionary <string, int> > > DeleteAsync([FromRoute] string key, [Required, FromHeader] string author)
        {
            await reactionStorage.DeleteAsync(key, author);

            return(Ok(await reactionStorage.GetStats(key)));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult <IDictionary <string, int> > > DeleteAsync([FromRoute] string key)
        {
            await reactionStorage.DeleteAsync(key);

            return(Ok(await reactionStorage.GetStats(key)));
        }