コード例 #1
0
        public async Task <ResultStatus> Handle(AddSubjectCommand request, CancellationToken cancellationToken)
        {
            Subject subject = new Subject()
            {
                Title = request.Title
            };
            await _write.AddSubject(subject);

            await _write.Save();

            return(ResultStatus.Success);
        }