示例#1
0
        public async Task <IActionResult> Get(string id)
        {
            ArticlePayload?record = await _acticleStoreService.Get(ArticleId.FromBase64(id));

            if (record == null)
            {
                return(NotFound());
            }

            return(Ok(record));
        }
示例#2
0
        public async Task <IActionResult> Delete(string id)
        {
            bool status = await _acticleStoreService.Delete(ArticleId.FromBase64(id));

            return(status ? Ok() : NotFound());
        }