public async Task <ActionResult> Update([FromRoute] string id, FormRequest form) { var user = ValidateUser(); await FormService.Update(id, user, form.ToModel(mapper)); return(Ok()); }
public async Task <ActionResult <Form> > Create(FormRequest form) { var user = ValidateUser(); var result = await FormService.Create(form.ToModel(mapper), user); return(Ok(result)); }