Ejemplo n.º 1
0
        public Form BuildForm(int formId,Dictionary<string,string> initParams)
        {
            var form = GetForm(formId);

            form.form_params = initParams;

            var labelList = _labelService.GetLabelList(formId);            
            
            foreach (var label in labelList)
            {              
                form.AddLabel(label);
            }
            
            return form;
        }
Ejemplo n.º 2
0
 public IHttpActionResult GetLabelList(int formId)
 {
     var list = _labelService.GetLabelList(formId);
     return Json(new OkResponse(list));
 }