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); }
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); }