public IActionResult TopicCreateAjax(Topic topic) { if (_TopicManager.Exists(topic.Name)) { return(Json(new { status = false, message = "Topic is exist" })); } _TopicManager.Add(topic); return(Json(new { status = true, message = "Add new topic success" })); }