/// <summary> /// Calls the AssignRainyDay() method from the business class repository /// </summary> private void AssignRainyDays() { ResponseBusiness responseBusiness = new ResponseBusiness(_responseRepository); using (responseBusiness) { responseBusiness.AssignIsRainyDay(); } }
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 } }