public ActionResult ViewLeaves1() { ApplyLeave obj = new ApplyLeave(); obj.LeaveList = obj.getLeaveList(Session["MSID"].ToString()); TempData["Success"] = "Leave Updated Successfully"; return(View(obj)); }
public ActionResult ViewLeaves() { int i = 0; ApplyLeave obj = new ApplyLeave(); //ViewData["MSID"] = Session["MSID"]; string MSID = Session["MSID"].ToString(); obj.LeaveList = obj.getLeaveList(Session["MSID"].ToString()); //obj.LeaveList = obj.getLeaveList(MSID); return(View(obj)); }