public SelectList getDepartmentDropDown()
        {
            List <DepartmentDTO> rDto = _ddlRepo.Department();
            DepartmentDTO        dDTO = new DepartmentDTO();

            dDTO.DepartmentId   = -1;
            dDTO.DepartmentName = "";
            rDto.Insert(0, dDTO);
            return(new SelectList(rDto, "DepartmentId", "DepartmentName"));
        }
示例#2
0
        public SelectList getDepartmentDropDown()
        {
            List <DepartmentDTO> rDto = _ddlRepo.Department();

            return(new SelectList(rDto, "DepartmentId", "DepartmentName"));
        }