public List <ListItem> GetAllDesignationAsListItem() { List <ListItem> designationListItem = new List <ListItem>() { new ListItem() { Text = "Please Select" } }; List <Designation> designationList = _designationGateway.GetAllDesignation(); foreach (Designation designation in designationList) { ListItem listItem = new ListItem(); listItem.Value = designation.Id.ToString(); listItem.Text = designation.Name; designationListItem.Add(listItem); } return(designationListItem); }
public List <Designation> GetAllDesignation() { return(aDesignationGateway.GetAllDesignation()); }
public List <Designation> GetAllDesignation() { List <Designation> aDesignations = aDesignationGateway.GetAllDesignation(); return(aDesignations); }