コード例 #1
0
        public async Task <IHttpActionResult> GetAllParents()
        {
            var collection = await(ParentService.GetAllParent());

            if (collection != null)
            {
                return(Ok(collection));
            }
            else
            {
                return(NotFound());
            }
        }