// GET: Department public ActionResult Index() { var ses = sesrepo.GetSessionById((User as CustomPrincipal).UserId); int orgid = ses.OrganizationId; return(View(db.GetDepartmentList(orgid))); }