public async Task AddForm(Form form) { if (form == null) { throw new ArgumentNullException(nameof(form)); } FormDTO form_w_geo = await _IGeoProvider.GetAdress(new FormDTO(form)); await _IformRepository.AddForm(form_w_geo); }
public void Post([FromForm] JotFormModel Form) { var Rawfields = JsonConvert.DeserializeObject <Dictionary <string, object> >(Form.RawRequest); List <FieldModel> fields = FormFields(Rawfields, Form.SubmissionID); FormModel form = new FormModel { FormID = Form.FormID, FormName = Form.FormTitle, SubmissionID = Form.SubmissionID, FormFields = fields }; _repository.AddForm(form); }
public void AddForm(Form form) { _formRepository.AddForm(form); }