public async Task <IActionResult> Edit(int id, [Bind("RefEducationAdministratorPositionId,EducationAdministratorPositionCode,EducationAdministratorPosition")] RefEducationAdministratorPosition refEducationAdministratorPosition)
        {
            if (id != refEducationAdministratorPosition.RefEducationAdministratorPositionId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(refEducationAdministratorPosition);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!RefEducationAdministratorPositionExists(refEducationAdministratorPosition.RefEducationAdministratorPositionId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }

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

                return(RedirectToAction(nameof(Index)));
            }
            return(View(refEducationAdministratorPosition));
        }
        public async Task <IActionResult> Create([Bind("RefEducationAdministratorPositionId,EducationAdministratorPositionCode,EducationAdministratorPosition")] RefEducationAdministratorPosition refEducationAdministratorPosition)
        {
            if (ModelState.IsValid)
            {
                _context.Add(refEducationAdministratorPosition);
                await _context.SaveChangesAsync();

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

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