public Result Answer(long id, string answer, int correct, int cost, string userName) { UserAnswerQB a = new UserAnswerQB() { UserAnswerQBID = IDProvider.GetNewId("UserAnswerQBID"), Answer = answer.Trim(), Correct = correct == 1, Cost = cost, CrUserName = userName, CrTime = TimeProvider.Now, QuestionID = id }; var con = ContextFactory.GetNewContext(); con.UserAnswerQBs.InsertOnSubmit(a); con.SubmitChanges(); return Result.Success(); }
partial void DeleteUserAnswerQB(UserAnswerQB instance);
partial void UpdateUserAnswerQB(UserAnswerQB instance);
partial void InsertUserAnswerQB(UserAnswerQB instance);