예제 #1
0
        public static Car FetchCar(DataSource dataSource, Version versao)
        {
            switch (dataSource)
            {
            case DataSource.Excel:
                return(DataLayerExcel.FetchCar(versao));

            case DataSource.Xml:
                return(DataLayerXml.FetchCar(versao));

            case DataSource.FireBase:
                return(DataLayerFireBase.FetchCar(versao));

            default:
                return(null);
            }
        }
예제 #2
0
        public static List <Model> FetchModels(DataSource dataSource, Brand marca)
        {
            switch (dataSource)
            {
            case DataSource.Excel:
                return(DataLayerExcel.FetchModels(marca));

            case DataSource.Xml:
                return(DataLayerXml.FetchModels(marca));

            case DataSource.FireBase:
                return(DataLayerFireBase.FetchModels(marca));

            default:
                return(null);
            }
        }
예제 #3
0
        public static List <Version> FetchVersions(DataSource dataSource, Model modelo)
        {
            switch (dataSource)
            {
            case DataSource.Excel:
                return(DataLayerExcel.FetchVersions(modelo));

            case DataSource.Xml:
                return(DataLayerXml.FetchVersions(modelo));

            case DataSource.FireBase:
                return(DataLayerFireBase.FetchVersions(modelo));

            default:
                return(null);
            }
        }
예제 #4
0
        public static List <Brand> FetchBrands(DataSource dataSource)
        {
            switch (dataSource)
            {
            case DataSource.Excel:
                return(DataLayerExcel.FetchBrands());

            case DataSource.Xml:
                return(DataLayerXml.FetchBrands());

            case DataSource.FireBase:
                return(DataLayerFireBase.FetchBrands());;

            default:
                return(null);
            }
        }