コード例 #1
0
        public IHttpActionResult Post()
        {
            AuthenticatedUser user = authenticate.confirmToken();

            try
            {
                if (user.UserID != 0)
                {
                    ObjectBuilder listBuilder = new ObjectBuilder();
                    SurveyQueries query       = new SurveyQueries();
                    List <Answer> answers     = listBuilder.BuildAnswerList(HttpContext.Current.Request["answers"]);
                }
                else
                {
                    return(Unauthorized());
                }
                return(Ok("success"));
            }
            catch (Exception e)
            {
                return(InternalServerError(e));
            }
        }