(int? id, bool? saveChangesError=false

Could someone tell me what this line of code mean

int? id, bool? saveChangesError=false

public ActionResult Delete(int? id, bool? saveChangesError=false)
    if (id == null)
        return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
    if (saveChangesError.GetValueOrDefault())
        ViewBag.ErrorMessage = "Delete failed. Try again, and if the problem persists see your system administrator.";
    Student student = db.Students.Find(id);
    if (student == null)
        return HttpNotFound();
    return View(student);
Who is Participating?
Paul JacksonConnect With a Mentor Software EngineerCommented:
Here's some info on nullable types :

yguyon28Author Commented:
Does (int? id mean its nulable....
Paul JacksonSoftware EngineerCommented:
Yes int? means id is nullable
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
It is specifying that id is a Nullable<int> and saveChanges is a Nullable<bool> with a default value of false.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.