[HttpGet] public ActionResult DriverDtlAdd(int id = -1) { if (Session["Driver"] != null) { List<DriverDtl> driverDtls = new DriverDtlDAL().GetDriverDtls(id); DriverDtl obj; if (driverDtls.Count > 0) { obj = driverDtls[0]; } else { obj = new DriverDtl(); } return View(obj); } else { return RedirectToAction("DriverLogin"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)