public IActionResult AddParameters(List <FormField> fields) { #region validation if (fields == null) { return(BadRequest(GetSerializedResult(_defaultResult))); } if (!ModelState.IsValid) { return(BadRequest(GetSerializedResult(_defaultResult))); } #endregion _submissionsService.SaveSubmission(new SubmissionDto { Fields = fields }); return(Ok(GetSerializedResult(new CommonResult { Success = true, ErrorMessage = null }))); }