public ActionResult CreateLeave(LeaveDetail objleave) { objleave.Id = Session["id"].ToString(); objLeaveBLL.Createleave(objleave); //objleave.Id = Session["id"].ToString(); string id = objleave.Id; return(RedirectToAction("GetLeaveById", "Emp", new { id })); }