Esempio n. 1
0
        public IHttpActionResult AddQuestion([FromBody] Question entity)
        {
            bool isAdded = _questionService.AddOrUpdate(entity);

            if (isAdded)
            {
                return(Ok());
            }
            else
            {
                return(BadRequest());
            }
        }