Example #1
0
        /// <summary>
        /// Return  sheet list.
        /// </summary>
        /// <param name="countryId">the  id</param>
        /// <returns></returns>
        public async Task <ActionResult> GetSheets(int countryId)
        {
            SheetsViewData sheetsViewData = new SheetsViewData
            {
                Sheets    = await GetSheetsList(countryId),
                CountryId = countryId
            };

            return(View("Partials/_SheetsList", sheetsViewData));
        }
Example #2
0
        /// <summary>
        /// Get sheet by country
        /// </summary>
        /// <param name="countryId">the country id.</param>
        /// <returns>The sheetViewData</returns>
        private async Task <SheetsViewData> GetSheets(int countryId)
        {
            SheetsViewData sheetsViewData = new SheetsViewData
            {
                Sheets    = await GetSheetsList(countryId),
                CountryId = countryId
            };

            return(sheetsViewData);
        }