public IActionResult OnGet(int kidId)
        {
            if (Program.loggedUser == false)
            {
                return(RedirectToPage("./NotFound"));
            }

            Kid = kindergardenData.GetKidById(kidId);
            if (Kid == null)
            {
                return(RedirectToPage("./NotFound"));
            }

            return(Page());
        }
        public IActionResult OnGet(int kidId)
        {
            if (Program.loggedUser == false)
            {
                return(RedirectToPage("./NotFound"));
            }



            kid = kindergardenData.GetKidById(kidId);
            if (kid == null)
            {
                return(RedirectToPage("./NotFound"));
            }

            kid.Status = Statuses.Primen;
            switch (kid.Age)
            {
            case 1:
                kid.GroupId = (int)GroupType.JasliMala;
                break;

            case 2:
                kid.GroupId = (int)GroupType.JasliGolema;
                break;

            case 3:
                kid.GroupId = (int)GroupType.GradinkaMala;
                break;

            case 4:
                kid.GroupId = (int)GroupType.GradinkaSredna;
                break;

            case 5:
                kid.GroupId = (int)GroupType.GradinkaGolema;
                break;

            default:
                kid.GroupId = (int)GroupType.None;
                break;
            }
            kindergardenData.Commit();

            MailHelper mailHelper = new MailHelper(Configuration);

            Parents parent = kindergardenData.GetParentById((int)kid.ParentId);

            mailHelper.SendApplicationApproved(parent.Email, parent.ImeTatko + " " + parent.ImeMajka + " " + kid.LastName);

            return(Page());
        }