Exemple #1
0
 /// <summary>
 /// Gets Location entity from DbLocation entity.
 /// </summary>
 /// <param name="dbLocation"></param>
 /// <returns></returns>
 public static Location ToLocation(this DbLocation dbLocation) =>
 dbLocation.IsEmpty() ? null : new Location
 {
     Longitude = dbLocation.Longitude,
     Latitude  = dbLocation.Latitude
 };