Example #1
0
        //MOSTRAR MES PARA AFP
        public IEnumerable <Nafp> Mostrar_mes()
        {
            List <Nafp> list_rol = null;

            using (Rafp r = new Rafp())
            {
                using (DataTable dt = r.Mostrar_mes())
                {
                    list_rol = new List <Nafp>();
                    foreach (DataRow item in dt.Rows)
                    {
                        list_rol.Add(new Nafp()
                        {
                            Idmes = Convert.ToInt32(item[0]),
                            Mes   = item[1].ToString()
                        });
                    }
                }
            }
            return(list_rol);
        }