Skip to content

Commit

Permalink
locationPage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
escfrya committed Jan 12, 2014
1 parent f964df2 commit 2f412a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void Locations()

public void OpenLocation(long locationId)
{
App.RootFrame.Navigate(new Uri(string.Format("/Pages/LocationPage.xaml?LocationId={0}", locationId), UriKind.Relative));
App.RootFrame.Navigate(new Uri(string.Format("/Pages/LocationPage.xaml?ObjectId={0}", locationId), UriKind.Relative));
}

public void GoBack()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void PhoneApplicationPageLoaded(object sender, RoutedEventArgs e)
firstLoad = false;
}

viewModel.LocationId = long.Parse(NavigationContext.QueryString["LocationId"]);
viewModel.LocationId = long.Parse(NavigationContext.QueryString["ObjectId"]);
viewModel.RefreshCommand.Execute(null);
}

Expand Down
2 changes: 1 addition & 1 deletion LocatorService/LocationService.svc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void SendLocation(Location location)
{
var userId = GetCurrentUserId();
location.FromUserId = userId;
location.Description = "test desc";
location.Description = DateTime.Now.ToString();
locationRepository.Add(location);

pushService.SendNotification(new NotificationPackage
Expand Down
2 changes: 1 addition & 1 deletion LocatorService/PushNotificationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace LocatorService
{
public class PushNotificationService
{
private const string ObjectIdItemName = "objectId";
private const string ObjectIdItemName = "ObjectId";
private readonly IUserPushRepository userPushRepository;
private readonly IUserRepository userRepository;

Expand Down

0 comments on commit 2f412a0

Please sign in to comment.