costItem fix

This commit is contained in:
Илья Федотов 2024-05-31 19:54:47 +04:00
parent 6c04fe617a
commit 105adb9568
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ namespace ElectronicsShopDataBaseImplement
optionsBuilder)
{
if (optionsBuilder.IsConfigured == false) {
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-E2VPEN3\SQLEXPRESS;Initial Catalog=ElectronicsShopDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-O0N00SH\SQLEXPRESS;Initial Catalog=ElectronicsShopDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
}
base.OnConfiguring(optionsBuilder);
}

View File

@ -116,7 +116,7 @@ namespace ElectronicsShopEmployeeApp.Controllers {
Price = price,
CostNum = costNum
});
Response.Redirect("CostItem");
}
[HttpGet]