Beispiel #1
0
        public async Task <AbstractAnswer <Guid> > Handle(CreateFormRequest request, CancellationToken cancellationToken)
        {
            var keywords = keysGetter.Handle(request.Fields);

            var created = await formCreator.HandleAsync(request.Fields.ToString(), keywords);

            return(created);
        }
Beispiel #2
0
        public async Task <AbstractAnswer <Form> > Handle(UpdateFormRequest request, CancellationToken cancellationToken)
        {
            var keywords = keysGetter.Handle(request.Fields);

            return(await formUpdater.HandleAsync(new Form
            {
                Fields = request.Fields,
                Id = request.Id,
                Keywords = keywords,
            }));
        }