public BizForm SetFormControlOptions(BizForm form, IList <BizControlOption> formOptions) { if (form != null && formOptions != null) { return(FormRepo.SetFormOptions(form, formOptions)); } return(form); }
public BizForm SetFormOptions(BizForm form, IDictionary <Guid, IList <BizControlOption> > formOptions) { if (form != null && formOptions != null) { IList <BizControlOption> options; if (formOptions.TryGetValue(form.Id, out options)) { return(FormRepo.SetFormOptions(form, options)); } } return(form); }