public IEnumerable <string> Get() { IQEntity iq = new IQEntity(); iq.Context = "你大爷试试"; iq.IType = 1; IQOption option1 = new IQOption(); option1.Context = "选项1"; IQOption option2 = new IQOption(); option2.Context = "选项2"; iq.OptionList.Add(option1); iq.OptionList.Add(option2); iIQService.Insert(iq); return(new string[] { "value1", "" }); }
public async Task <IQEntity> Insert(IQEntity iQEntity) { return(await this.entityRepository.InsertAsync(iQEntity)); }