public int Update(NameValueCollection parameters, NameValueCollection where, out ErrorEntity ErrInfo) { OEErrorQuestionDA da = new OEErrorQuestionDA(); int result = da.Update(parameters, where); if (result > 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public Int32 Insert(NameValueCollection parameters, out ErrorEntity ErrInfo) { OEErrorQuestionDA da = new OEErrorQuestionDA(); Int32 result = da.Insert(parameters); if (result > 0) { ErrInfo = new ErrorEntity(RespCode.Success); } else { ErrInfo = new ErrorEntity(RespCode.SysError); } return result; }
public List<OEErrorQuestion> Select(NameValueCollection where, NameValueCollection orderby, int pageIndex, int pageSize, out int totalCount) { OEErrorQuestionDA da = new OEErrorQuestionDA(); return da.Select(where, orderby, pageIndex, pageSize, out totalCount).DataTableToList<OEErrorQuestion>(); }
public List<OEErrorQuestion> Select(NameValueCollection where, NameValueCollection orderby) { OEErrorQuestionDA da = new OEErrorQuestionDA(); return da.Select(where, orderby).DataTableToList<OEErrorQuestion>(); }