Ejemplo n.º 1
0
        public async Task <IActionResult> DeleteArticle(string id)
        {
            int.TryParse(id, out var aid);
            var success = await _articleBusiness.SoftDeleteAsync(aid);

            if (success)
            {
                return(Ok());
            }
            return(BadRequest());
        }