コード例 #1
0
        public BacklogEvalQueryResult HandleBacklogOrderSubmissionRequest(BacklogOrderRequest request)
        {
            var submission = new Submission()
            {
                Indexes = request.UserStoryIndexes
            };

            _backlogrepo.WriteSubmission(request.Id, submission);

            return(EvalSubmissions(request.Id));
        }
コード例 #2
0
        public (Status, BacklogEvalQueryResult) HandleBacklogOrderSubmissionRequest(BacklogOrderRequest request)
        {
            var submission = new Submission()
            {
                Indexes = request.UserStoryIndexes,
                UserId  = request.UserId
            };

            var status = _backlogrepo.WriteSubmission(request.BacklogId, submission);

            if (status is Failure)
            {
                return(status, null);
            }

            return(EvalSubmissions(request.BacklogId));
        }