예제 #1
0
        public async Task <HttpResponseMessage> ChildrenCount(Guid id)
        {
            var result = new {
                ChildrenCount = (await MyCoreApi.FindAllChildrenIdsByParentIdAsync(id)).Count()
            };

            return(new HttpResponseMessage {
                Content = new StringContent(SerializeObjectToString(result), System.Text.Encoding.GetEncoding("UTF-8"), "application/json")
            });
        }