//[Authorize("add:article")] Disabled authentication for this test public IActionResult AddArticle([FromBody] Article article, string authorId) { string createdId; try { createdId = _dataController.AddArticle(article, authorId); } catch (Exception e) { return(BadRequest(new { e.Message })); } return(Json(new { Message = $"Article ({createdId}) successfully added" })); }