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);
}
}