コード例 #1
0
        /// <summary>
        /// Calls the AssignRainyDay() method from the business class repository
        /// </summary>
        private void AssignRainyDays()
        {
            ResponseBusiness responseBusiness = new ResponseBusiness(_responseRepository);

            using (responseBusiness)
            {
                responseBusiness.AssignIsRainyDay();
            }
        }
コード例 #2
0
        private void GetWeather()
        {
            //
            // instantiate a responseBusiness class and pass the repository into it
            //
            ResponseBusiness responseBusiness = new ResponseBusiness(responseRepository);
            Response         response;

            using (responseBusiness)
            {
                responseBusiness.AssignIsRainyDay();
                response = responseBusiness.SelectAll();
                //TODO: View: display fresh API pull form
            }
        }