пилю отчет

This commit is contained in:
a.puchkina 2024-05-30 11:12:01 +04:00
parent 547bcbea64
commit d13ac1b074
2 changed files with 7 additions and 3 deletions

View File

@ -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);
}

View File

@ -131,7 +131,11 @@ namespace LawFirmRestApi.Controllers
{
try
{
return _reportLogic.GetConsultationHearing(new ReportConsultationHearingBindingModel { DateFrom = dateFrom, DateTo = dateTo, GuarantorId = guarantorId});
ReportConsultationHearingBindingModel model = new();
model.DateTo = dateTo;
model.DateFrom = dateFrom;
model.GuarantorId = guarantorId;
return _reportLogic.GetConsultationHearing(model);
}
catch (Exception ex)
{