public void UpdateStudentTest(FormCollection form) { int id_quest = Convert.ToInt32(form["id"]); string answer = form["answer"]; answer = answer.Trim(); string time = form["min"] + ":" + form["sec"]; Model.UpdateStudentTest(id_quest, answer); Model.UpdateTiming(time); }
public void UpdateStudentTest(FormCollection form) // cập nhật câu trả lời { // truyền vào thông tin int id_quest = Convert.ToInt32(form["id"]); string answer = form["answer"]; answer = answer.Trim(); // xóa khoảng trắng thừa string time = form["min"] + ":" + form["sec"]; Model.UpdateStudentTest(id_quest, answer); Model.UpdateTiming(time); }