Ejemplo n.º 1
0
        public async Task <string> GetChildsList(int parentId)
        {
            var parentsList = await _context.GetAllChildrens(parentId);

            var result = parentsList.Select(c => new DataClassChildView()
            {
                Data    = c.Data,
                ChildId = c.ChildId
            });

            return(JsonConvert.SerializeObject(result, JsonSettings));
        }