예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void AddForm(Form form)
 {
     _formRepository.AddForm(form);
 }