Skip to content
Open
19 changes: 14 additions & 5 deletions AmbulanceSystem-WebApp/Controllers/RecieptionistController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,23 @@ public async Task<IActionResult> CreateReport()
{
HospitalId = hospitalId
};
foreach (var patient in patients)

if(patients != null)
{
createReportModel.PatientsList.Add(new CreateReportPatientList
foreach (var patient in patients)
{
Id = patient.Id,
Username = patient.User.Username
});
createReportModel.PatientsList.Add(new CreateReportPatientList
{
Id = patient.Id,
Username = patient.User.Username
});
}
}
else
{
patients = new List<PatientFullData>();
createReportModel.PatientsList = new List<CreateReportPatientList>();
}

return View(createReportModel);
}
Expand Down
4 changes: 2 additions & 2 deletions AmbulanceSystem-WebApp/Services/StaticBaseUrl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace AmbulanceSystem_WebApp.Services.Core
{
public class StaticBaseUrl
{
//public const string BaseUrl = "https://ambulancesystem.azurewebsites.net/api/";
public const string BaseUrl = "http://localhost:1882/api/";
public const string BaseUrl = "https://ambulancesystem.azurewebsites.net/api/";
//public const string BaseUrl = "http://localhost:1882/api/";
}
}
17 changes: 17 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ASP.NET Core
# Build and test ASP.NET Core projects targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core

trigger:
- master

pool:
vmImage: 'ubuntu-latest'

variables:
buildConfiguration: 'Release'

steps:
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'dotnet build $(buildConfiguration)'