public ActionResult ScheduleReview()
        {
            List <SelectListItem>  reviewerDepartments    = new List <SelectListItem>();
            ReviewDetailsViewModel reviewDetailsViewModel = new ReviewDetailsViewModel();

            List <Departments> states = departmentBL.GetDepartments();

            states.ForEach(x =>
            {
                reviewerDepartments.Add(new SelectListItem {
                    Text = x.DepartmentName, Value = x.DepartmentId.ToString()
                });
            });
            reviewDetailsViewModel.Departments = reviewerDepartments;
            return(View(reviewDetailsViewModel));
        }
Esempio n. 2
0
 public ViewResult DeleteDepartments(int id)
 {
     departmentBL.DeleteDepartments(id);
     TempData["Departments"] = departmentBL.GetDepartments();
     return(View("DisplayDepartments"));
 }
Esempio n. 3
0
 //Get method to add employee details
 public ViewResult AddEmployee()
 {
     ViewBag.Departments = new SelectList(departmentBL.GetDepartments(), "DepartmentID", "DepartmentName");
     ViewBag.Designation = new SelectList(designationBL.GetDesignations(), "DesignationID", "DesignationName");
     return(View());
 }