private dynamic GetModels(HttpContext context) { dynamic model = new BidReturnInfo(); try { model.FK_BidId = int.Parse(context.Request.QueryString["FK_BidId"].ToString()); } catch { } try { model.FK_JobId = adminUser.JobId; } catch { } model.ReturnDepaName = adminUser.AdminName; model.ReturnDepaSay = context.Request.QueryString["ReturnDepaSay"].ToString(); model.ReturnDate = DateTime.Now; return(model); }
// public bool Create(BidReturnInfo model) { try { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into T_BidReturnInfo("); strSql.Append("FK_BidId,FK_JobId,ReturnDepaName,ReturnDepaSay,ReturnDate)"); strSql.Append(" values ("); strSql.Append("@FK_BidId,@FK_JobId,@ReturnDepaName,@ReturnDepaSay,@ReturnDate)"); if (DbHelperSQL.ExecuteSql(strSql.ToString(), GetSqlParameter(model)) > 0) { return(true); } else { return(false); } } catch { throw; } }