Exemple #1
0
        public List <SelectListItem> GetAllDesignationForDropdown()
        {
            List <SelectListItem> selectListItems = new List <SelectListItem>();

            selectListItems.Add(new SelectListItem()
            {
                Text = "--Select--", Value = ""
            });
            foreach (Designations designations in teacherGateway.GetAllDesignation())
            {
                SelectListItem selectListItem = new SelectListItem();
                selectListItem.Text  = designations.DesignationName;
                selectListItem.Value = designations.DesignationsId.ToString();
                selectListItems.Add(selectListItem);
            }
            return(selectListItems);
        }
 public List <SelectListItem> GetAllDesignation()
 {
     return(aTeacherGateway.GetAllDesignation());
 }
Exemple #3
0
 public List <Designation> GetAllDesignation()
 {
     return(aTeacherGateway.GetAllDesignation());
 }