Пример #1
0
        public async Task SubmitResponses(int questionnaireId, [FromBody] UserResponse[] response)
        {
            var userId       = User.GetUserId();
            var departmentId = User.GetUserDepartmentId();

            await _responsesService.SubmitResponses(new SubmitUsereResponsesCommand
            {
                QuestionnaireId = questionnaireId,
                DepartmentId    = departmentId,
                UserId          = userId,
                Responses       = response
            });
        }