public async Task <IActionResult> EditSection(Section model)
        {
            if (ModelState.IsValid)
            {
                model.LastModifiedByName = User.Identity.Name;
                int result = await _repository.UpdateSectionAsync(model);

                if (result == -5)
                {
                    TempData["SectionMessage"] = _stringLocalizer["Nothing changed"].ToString();
                }
                else if (result == 1)
                {
                    TempData["SectionMessage"] = _stringLocalizer["Section modified successfully"].ToString();
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewBag.Title = _stringLocalizer["Edit Section"].ToString();
            return(View(model));
        }