удаление дела

This commit is contained in:
Галина Федоренко 2024-05-30 11:33:38 +04:00
parent d13ac1b074
commit 44552435e6
3 changed files with 6 additions and 17 deletions

1
.gitignore vendored
View File

@ -401,3 +401,4 @@ FodyWeavers.xsd
/LawFim/LawFirmRestApi/file.pdf /LawFim/LawFirmRestApi/file.pdf
/LawFim/LawFirmRestApi/pdf.file /LawFim/LawFirmRestApi/pdf.file
/LawFim/LawFirmRestApi/string /LawFim/LawFirmRestApi/string
/LawFim/LawFirmDatabaseImplement/LawFirmDatabase.cs

View File

@ -11,9 +11,9 @@ namespace LawFirmDatabaseImplement
{ {
if (optionsBuilder.IsConfigured == false) if (optionsBuilder.IsConfigured == false)
{ {
//optionsBuilder.UseSqlServer(@"Data Source=ZIRAEL\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); optionsBuilder.UseSqlServer(@"Data Source=ZIRAEL\SQLEXPRESS;Initial Catalog=LawFirmDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
optionsBuilder.UseSqlServer(@"Data Source=PC-Anna\SQLEXPRESS;Initial Catalog=LawFirmDatabase2;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); //optionsBuilder.UseSqlServer(@"Data Source=PC-Anna\SQLEXPRESS;Initial Catalog=LawFirmDatabase2;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
} }
base.OnConfiguring(optionsBuilder); base.OnConfiguring(optionsBuilder);
} }

View File

@ -81,11 +81,8 @@ namespace LawFirmExecutorApp.Controllers
APIClient.PostRequest("api/case/updatecase", new APIClient.PostRequest("api/case/updatecase", new
CaseBindingModel CaseBindingModel
{ {
ExecutorId = APIClient.Executor.Id, Id = id
Name = name,
Status = status,
CaseType = type,
DateCreate = date
}); });
Response.Redirect("/Home/Cases"); Response.Redirect("/Home/Cases");
} }
@ -97,16 +94,7 @@ namespace LawFirmExecutorApp.Controllers
throw new Exception("Вы как суда попали? Суда вход только авторизованным"); throw new Exception("Вы как суда попали? Суда вход только авторизованным");
} }
APIClient.PostRequest("api/case/deletecase", new APIClient.PostRequest("api/case/deletecase", );
CaseBindingModel
{
ExecutorId = APIClient.Executor.Id,
Name = "",
Status = CaseStatus.Неизвестен,
CaseType = "",
DateCreate = DateTime.Now
});
Response.Redirect("/Home/Cases"); Response.Redirect("/Home/Cases");
} }