public ActionResult ManageContact(int id = 0) { ViewBag.ContactId = id; Contact model = null; if (id > 0) { model = _contactBL.GetContactByID(id); } if (model == null) { model = new Contact(); } return(View("ManageContact", model)); }
public ActionResult ManageContact(int id = 0) { ViewBag.ContactId = id; Contact model = null; if (id > 0) { model = _contactBL.GetContactByID(id); } if (model == null) { model = new Contact(); } return(View("ManageContact", model)); }