#233 poet birth and death places latitude and longitude
This commit is contained in:
parent
2ece06fa66
commit
031cf3eaa5
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user