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) optionsBuilder)
{ {
if (optionsBuilder.IsConfigured == false) { 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); base.OnConfiguring(optionsBuilder);
} }

View File

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