예제 #1
0
        public static List <TipoServicio> List(FiltroTipoServicio f)
        {
            List <TipoServicio> resulList = new List <TipoServicio>();

            try
            {
                TipoServicioDS dataservice = new TipoServicioDS();
                DataSet        listado     = dataservice.List(f);

                if (listado.Tables.Count > 0)
                {
                    foreach (DataRow d in listado.Tables[0].Rows)
                    {
                        TipoServicio t = new TipoServicio();
                        ORM(t, d);
                        resulList.Add(t);
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(resulList);
        }
예제 #2
0
        public void TipoServicio()
        {
            TipoServicioDS     ds = new TipoServicioDS();
            FiltroTipoServicio ft = new FiltroTipoServicio();

            ft.OrderBY = "order by DESCRIPCION ASC";

            ds.List(ft);
        }