public ActionResult <SectionListViewModel> GetAllsection(SectionListViewModel section) { SectionListViewModel sectionList = new SectionListViewModel(); try { if (section.SchoolId > 0) { sectionList = _sectionService.GetAllsection(section); } else { sectionList._token = section._token; sectionList._tenantName = section._tenantName; sectionList._failure = true; sectionList._message = "Please enter valid scholl id"; } } catch (Exception es) { sectionList._failure = true; sectionList._message = es.Message; } return(sectionList); }