コード例 #1
0
 public static List <Region> GetRegiones()
 {
     try
     {
         var dao = new DaoWeather(config);
         return(dao.GetRegion());
     }
     catch (Exception e)
     {
         throw e;
     }
 }
コード例 #2
0
        public static Clima GetClima(string nombreRegion)
        {
            try
            {
                var dao = new DaoWeather(config);

                return(dao.GetClima(new Sucursal(nombreRegion)));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #3
0
        public static int AddSucursal(Sucursal sucursal)
        {
            try
            {
                var dao = new DaoWeather(config);

                return(dao.CreateSucursal(sucursal));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #4
0
        public static Clima GetClima(float latitud, float longitud)
        {
            try
            {
                var dao = new DaoWeather(config);

                return(dao.GetClima(new Coordenadas(latitud, longitud)));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #5
0
        public static List <Sucursal> GetSucursales()
        {
            try
            {
                var             dao  = new DaoWeather(config);
                List <Sucursal> list = dao.GetSucursal(0);

                return(list);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }