public async Task <IActionResult> Edit(int id, [Bind("RefSchoolAdministrationTypeId,SchoolAdministrationTypeCode,SchoolAdministrationType")] RefSchoolAdministrationType refSchoolAdministrationType)
        {
            if (id != refSchoolAdministrationType.RefSchoolAdministrationTypeId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(refSchoolAdministrationType);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!RefSchoolAdministrationTypeExists(refSchoolAdministrationType.RefSchoolAdministrationTypeId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }

                TempData["messageType"]  = "success";
                TempData["messageTitle"] = "RECORD UPDATED";
                TempData["message"]      = "Record successfully updated";

                return(RedirectToAction(nameof(Index)));
            }
            return(View(refSchoolAdministrationType));
        }
        public async Task <IActionResult> Create([Bind("RefSchoolAdministrationTypeId,SchoolAdministrationTypeCode,SchoolAdministrationType")] RefSchoolAdministrationType refSchoolAdministrationType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(refSchoolAdministrationType);
                await _context.SaveChangesAsync();

                TempData["messageType"]  = "success";
                TempData["messageTitle"] = "RECORD CREATED";
                TempData["message"]      = "New record successfully created";

                return(RedirectToAction(nameof(Index)));
            }
            return(View(refSchoolAdministrationType));
        }