public IHttpActionResult AddQuestion([FromBody] Question entity) { bool isAdded = _questionService.AddOrUpdate(entity); if (isAdded) { return(Ok()); } else { return(BadRequest()); } }
public IHttpActionResult AddQuestion([FromBody] Question entity) { bool isAdded = _questionService.AddOrUpdate(entity); if (isAdded) { return(Ok()); } else { return(BadRequest()); } }