public string SaveStudent(Student student) { if (studentGateway.DoesRollExist(student.RollNo, 0)) { return("Roll No. already exists!"); } int rowAffected = studentGateway.SaveStudent(student); if (rowAffected > 0) { return("Data inserted successfully."); } return("Insertion failed!"); }