private void POSTToDAOGetAllDates(ref List <CovidDate> oCovidDateList) { DAOModelPOST oDAOModelPOST = new DAOModelPOST(UtilsConstants.POSTMethodsConstants.GET_ALL_DATES, null); oCovidDateList = UtilsJSON.GetInstance().DeserializeFromPOSTUrl( oCovidDateList, UtilsConstants.UrlConstants.URL_DATA_REST, oDAOModelPOST).Result; }
private void POSTToDAOGetAllGeoZoneForAllDates(ref List <GeoZone> pAllGeoZoneList) { DAOModelPOST oDAOModelPOST = new DAOModelPOST( UtilsConstants.POSTMethodsConstants.GET_ALL_GEO_ZONE_FOR_ALL_DATES, null); pAllGeoZoneList = UtilsJSON.GetInstance().DeserializeFromPOSTUrl( pAllGeoZoneList, UtilsConstants.UrlConstants.URL_DATA_REST, oDAOModelPOST).Result; }
private async Task <object> GetFromDAO(CovidData pCovidData, string pMethod) { DAOModelPOST oDAOModelPOST = new DAOModelPOST(pMethod, pCovidData); return(await UtilsHTTP.GetInstance().POSTJsonAsyncToURL(UtilsConstants.UrlConstants.URL_DATA_REST, oDAOModelPOST)); }