// GET: Workouts/Details/5 public ActionResult Details(Guid id) { if (id == null) { return(BadRequest()); } WorkoutMeta workoutMeta = _workoutService.FindMeta(id, User.Identity.Name); // For now, only return XML data for the requesting user until privacy/sharing is implemented. if (workoutMeta == null) { return(NotFound()); } WorkoutsDetailsViewModel viewModel = new WorkoutsDetailsViewModel { DataFileUri = new Uri($"https://steadystrong.blob.core.windows.net/workouts/workout_{id}.xml"), WorkoutName = workoutMeta.Name }; return(View(viewModel)); }