public async Task <IActionResult> Create(StaticContentViewModel viewModel)
        {
            if (ModelState.IsValid)
            {
                if (await _staticContentService.CheckExistNameAsync(viewModel.Id, viewModel.Name))
                {
                    ModelState.AddModelError(nameof(viewModel.Name), "نام وارد شده تکراری است");
                    return(View(viewModel));
                }

                var result = await _staticContentService.InsertAsync(viewModel);

                if (result)
                {
                    return(RedirectToAction("Index", "StaticContents"));
                }

                return(View(viewModel));
            }

            return(View(viewModel));
        }