示例#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)));
        }
示例#2
0
        public async Task <ActionResult <IDictionary <string, int> > > DeleteAsync([FromRoute] string key)
        {
            await reactionStorage.DeleteAsync(key);

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