Exemple #1
0
        public IHttpActionResult GetAllSurvey()
        {
            var result = _surveyManager.GetAllSurvey();

            if (result == null)
            {
                return(Content(HttpStatusCode.BadRequest, new ErrorResponse(Errors.DATA_BASE_ERROR)));
            }
            else
            {
                return(Content(HttpStatusCode.OK, result));
            }
        }