Beispiel #1
0
        public async Task <DtoTblSection> SelectSectionBySectionName(string sectionName)
        {
            HttpResponseMessage httpResponseMessage = await _httpClient.PostAsJsonAsync($"api/SectionCore/SelectSectionBySectionName?sectionName={sectionName}", sectionName);

            DtoTblSection ans = await httpResponseMessage.Content.ReadAsAsync <DtoTblSection>();

            return(ans);
        }
Beispiel #2
0
        public async Task <DtoTblSection> SelectSectionById(int id)
        {
            HttpResponseMessage httpResponseMessage = await _httpClient.PostAsJsonAsync($"api/SectionCore/SelectSectionById?id={id}", id);

            DtoTblSection ans = await httpResponseMessage.Content.ReadAsAsync <DtoTblSection>();

            return(ans);
        }