public void CreateWebSettingsForCountryTest()
        {
            var entity = _memoryDbContext.WebSettings.FirstOrDefault();
            var webSettingsCreateModel = Builder <WebSettingsCreateModel> .CreateNew().Build();

            Assert.IsTrue(_webSettingsService.CreateWebSettingsForCountry(webSettingsCreateModel, CountryId));
        }
 public IActionResult Create(WebSettingsCreateModel webSettings)
 {
     if (ModelState.IsValid)
     {
         try
         {
             bool statusResult = _webSettingsService.CreateWebSettingsForCountry(webSettings, CountryId);
             if (statusResult)
             {
                 return(RedirectToAction(nameof(Details)).WithSuccess(LOCALIZATION_SUCCESS_DEFAULT));
             }
             else
             {
                 return(NotFound().WithError(LOCALIZATION_ERROR_NOT_FOUND));
             }
         }
         catch (Exception ex)
         {
             _logger.LogError(ex, ex.Message);
             return(RedirectToAction(nameof(Details)).WithError(ex.Message));
         }
     }
     return(View(webSettings));
 }