Exemple #1
0
        public List <DesignationDto> GetUserDesignationList()
        {
            DesignationServiceReference.DesignationServiceClient client = new DesignationServiceClient();
            List <DesignationDto> designationdtos = client.FindAll().Entities.ToList();

            client.Close();
            designationdtos.Insert(0, new DesignationDto()
            {
                DesignationId = 0, DesignationName = "[Select]"
            });
            return(designationdtos);
        }
Exemple #2
0
        public static List <DesignationDto> GetDesignations()
        {
            DesignationServiceReference.DesignationServiceClient Designationclient = new DesignationServiceClient();
            List <DesignationDto> Designationdto = Designationclient.FindAll().Entities.ToList();

            Designationclient.Close();
            Designationdto.Insert(0, new DesignationDto()
            {
                DesignationId = 0, DesignationName = "[Select]"
            });
            return(Designationdto);
        }