ChildPoolListings.Controllers.ChildListingsController.GetChildren C# (CSharp) Method

GetChildren() public method

public GetChildren ( ) : System.Web.Mvc.JsonResult
return System.Web.Mvc.JsonResult
        public JsonResult GetChildren()
        {
            using (var session = WebApiApplication.DocumentStore.OpenSession())
            {
                var results = session.Query<RegisteredChild>()
                    .Where(c => c.MarkAsDeleted == false)
                    .Where(c => c.RequestLockId == Guid.Empty)
                    .ToArray();
                return Json(results, JsonRequestBehavior.AllowGet);
            }
        }
ChildListingsController