// GET: Employee public ActionResult Index() { List <Designation> designationList = BALClass.GetAllDesignation(); List <SelectListItem> designationListItem = CommonFunctions.ConvertDesignationToListItem(designationList); ViewBag.DesignationList = designationListItem; List <EmploymentStatus> employmentStatusList = BALClass.GetAllEmploymentStatus(); List <SelectListItem> employmentStatusListItem = CommonFunctions.ConvertEmpStatusToListItem(employmentStatusList); ViewBag.EmploymentStatusList = employmentStatusListItem; return(View()); }