예제 #1
0
 private void UpdateShoes()
 {
     foreach (StravaDotNetGear.Shoes s in stravaAthleteDetails.Shoes)
     {
         Gear g = Gear.CreateShoe(s.Id, stravaAthleteDetails.Id);
         g.Distance      = Convert.ToDecimal(s.Distance);
         g.FrameType     = enums.BikeType.Default;
         g.IsPrimary     = s.IsPrimary;
         g.Name          = s.Name;
         g.ResourceState = s.ResourceState;
         _unitOfWork.CRUDRepository.AddOrUpdate <Gear>(g);
     }
 }