public async Task <IActionResult> ChildDeletion([FromQuery] IdModel model)
        {
            var user = await userManager.GetUserAsync(User);

            if (user == null ||
                !(await userManager.IsInRoleAsync(user, UserHelpers.UserRoles.Staff.ToString())))
            {
                return(Utilities.ErrorJson("Not authorized."));
            }

            if (model.Id == 0)
            {
                return(Utilities.GenerateMissingInputMessage("child id"));
            }

            try
            {
                ChildRepository repo = new ChildRepository(configModel.ConnectionString);

                return(new JsonResult(new
                {
                    Message = repo.DeleteChild(model.Id)
                }));
            }
            catch (Exception exc)
            {
                return(new JsonResult(new
                {
                    Error = exc.Message,
                }));
            }
        }