コード例 #1
0
 public async Task <IEnumerable <SectionCard> > GetAllSectionsAsync()
 {
     return(await ss.GetAllSectionsAsync());
 }
コード例 #2
0
        public async Task <IHttpActionResult> Get()
        {
            Services.SectionService.Contract.Section[] sections = await sectionService.GetAllSectionsAsync();

            return(Ok(sections.DeepCopyTo <Models.Section[]>()));
        }