удаление дела
This commit is contained in:
parent
d13ac1b074
commit
44552435e6
1
.gitignore
vendored
1
.gitignore
vendored
@ -401,3 +401,4 @@ FodyWeavers.xsd
|
||||
/LawFim/LawFirmRestApi/file.pdf
|
||||
/LawFim/LawFirmRestApi/pdf.file
|
||||
/LawFim/LawFirmRestApi/string
|
||||
/LawFim/LawFirmDatabaseImplement/LawFirmDatabase.cs
|
||||
|
@ -11,9 +11,9 @@ namespace LawFirmDatabaseImplement
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
@ -81,11 +81,8 @@ namespace LawFirmExecutorApp.Controllers
|
||||
APIClient.PostRequest("api/case/updatecase", new
|
||||
CaseBindingModel
|
||||
{
|
||||
ExecutorId = APIClient.Executor.Id,
|
||||
Name = name,
|
||||
Status = status,
|
||||
CaseType = type,
|
||||
DateCreate = date
|
||||
Id = id
|
||||
|
||||
});
|
||||
Response.Redirect("/Home/Cases");
|
||||
}
|
||||
@ -97,16 +94,7 @@ namespace LawFirmExecutorApp.Controllers
|
||||
throw new Exception("Вы как суда попали? Суда вход только авторизованным");
|
||||
}
|
||||
|
||||
APIClient.PostRequest("api/case/deletecase", new
|
||||
CaseBindingModel
|
||||
{
|
||||
ExecutorId = APIClient.Executor.Id,
|
||||
Name = "",
|
||||
Status = CaseStatus.Неизвестен,
|
||||
CaseType = "",
|
||||
DateCreate = DateTime.Now
|
||||
|
||||
});
|
||||
APIClient.PostRequest("api/case/deletecase", );
|
||||
Response.Redirect("/Home/Cases");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user