public async Task <IActionResult> Get(string id) { ArticlePayload?record = await _acticleStoreService.Get(ArticleId.FromBase64(id)); if (record == null) { return(NotFound()); } return(Ok(record)); }
public async Task <IActionResult> Delete(string id) { bool status = await _acticleStoreService.Delete(ArticleId.FromBase64(id)); return(status ? Ok() : NotFound()); }