удаление дела
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/file.pdf
|
||||||
/LawFim/LawFirmRestApi/pdf.file
|
/LawFim/LawFirmRestApi/pdf.file
|
||||||
/LawFim/LawFirmRestApi/string
|
/LawFim/LawFirmRestApi/string
|
||||||
|
/LawFim/LawFirmDatabaseImplement/LawFirmDatabase.cs
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user