#233 poet birth and death places latitude and longitude

This commit is contained in:
Hamid Reza Mohammadi 2021-10-29 19:10:32 +03:30
parent 2ece06fa66
commit 031cf3eaa5
3 changed files with 48 additions and 0 deletions

View File

@ -75,11 +75,31 @@
/// </summary>
public string BirthPlace { get; set; }
/// <summary>
/// birth place latitude
/// </summary>
public double BirthPlaceLatitude { get; set; }
/// <summary>
/// birth place longitude
/// </summary>
public double BirthPlaceLongitude { get; set; }
/// <summary>
/// death place
/// </summary>
public string DeathPlace { get; set; }
/// <summary>
/// death place latitude
/// </summary>
public double DeathPlaceLatitude { get; set; }
/// <summary>
/// death place longitude
/// </summary>
public double DeathPlaceLongitude { get; set; }
public override string ToString()
{
return Nickname;

View File

@ -6975,11 +6975,31 @@
birth place
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorPoetViewModel.BirthPlaceLatitude">
<summary>
birth place latitude
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorPoetViewModel.BirthPlaceLongitude">
<summary>
birth place longitude
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorPoetViewModel.DeathPlace">
<summary>
death place
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorPoetViewModel.DeathPlaceLatitude">
<summary>
death place latitude
</summary>
</member>
<member name="P:RMuseum.Models.Ganjoor.ViewModels.GanjoorPoetViewModel.DeathPlaceLongitude">
<summary>
death place longitude
</summary>
</member>
<member name="T:RMuseum.Models.Ganjoor.ViewModels.GanjoorPostReportCommentViewModel">
<summary>
report comment view model

View File

@ -62,7 +62,11 @@ namespace RMuseum.Services.Implementation
ValidBirthDate = poet.ValidBirthDate,
ValidDeathDate = poet.ValidDeathDate,
BirthPlace = poet.BirthLocation == null ? "" : poet.BirthLocation.Name,
BirthPlaceLatitude = poet.BirthLocation == null ? 0 : poet.BirthLocation.Latitude,
BirthPlaceLongitude = poet.BirthLocation == null ? 0 : poet.BirthLocation.Longitude,
DeathPlace = poet.DeathLocation == null ? "" : poet.DeathLocation.Name,
DeathPlaceLatitude = poet.DeathLocation == null ? 0 : poet.DeathLocation.Latitude,
DeathPlaceLongitude = poet.DeathLocation == null ? 0 : poet.DeathLocation.Longitude,
PinOrder = poet.PinOrder,
}
)
@ -289,7 +293,11 @@ namespace RMuseum.Services.Implementation
ValidDeathDate = poet.ValidDeathDate,
PinOrder = poet.PinOrder,
BirthPlace = poet.BirthLocation == null ? "" : poet.BirthLocation.Name,
BirthPlaceLatitude = poet.BirthLocation == null ? 0 : poet.BirthLocation.Latitude,
BirthPlaceLongitude = poet.BirthLocation == null ? 0 : poet.BirthLocation.Longitude,
DeathPlace = poet.DeathLocation == null ? "" : poet.DeathLocation.Name,
DeathPlaceLatitude = poet.DeathLocation == null ? 0 : poet.DeathLocation.Latitude,
DeathPlaceLongitude = poet.DeathLocation == null ? 0 : poet.DeathLocation.Longitude,
}).AsNoTracking().FirstOrDefaultAsync(),
Cat = catViewModel
}