コード例 #1
0
        public async Task <ActionResult> Update([FromRoute] string id, FormRequest form)
        {
            var user = ValidateUser();

            await FormService.Update(id, user, form.ToModel(mapper));

            return(Ok());
        }
コード例 #2
0
        public async Task <ActionResult <Form> > Create(FormRequest form)
        {
            var user = ValidateUser();

            var result = await FormService.Create(form.ToModel(mapper), user);

            return(Ok(result));
        }