public async Task <IActionResult> UpdateWaiver(PostWaiverModel 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 == null || model.Id == 0)
            {
                return(Utilities.GenerateMissingInputMessage("child id"));
            }

            try
            {
                ChildRepository repo = new ChildRepository(configModel.ConnectionString);
                repo.UpdateWaiver(model.Id, model.Received);

                String Message = "The child was recorded as " + (model.Received ? "" : "not ") + "having turned in the waiver.";
                return(new JsonResult(new
                {
                    Message
                }));
            }
            catch (Exception exc)
            {
                return(new JsonResult(new
                {
                    Error = exc.Message,
                }));
            }
        }