public void Update(Ace ace)
        {
            var aceDs = Utility.TflWs.GetAce(ace.Season, ace.Week, ace.PlayerId);

             if (aceDs.Tables[0].Rows.Count == 1)
             //  if yes just update
            Utility.TflWs.UpdateAce(ace.Season, ace.Week, ace.PlayerId, ace.PlayerCat, ace.TeamCode,
               ace.Load, ace.Touches);
             else
            Add(ace);
        }
 private void AddAceLine( NFLPlayer p, IAceRepository ar )
 {
     var dline = p.DetailLine();
      if (!string.IsNullOrEmpty( dline )) Aces.Add( dline );
      var ace = new Ace
      {
     PlayerId = p.PlayerCode,
     TeamCode = p.TeamCode,
     Season = Utility.CurrentSeason(),
     Week = Utility.PreviousWeek().ToString( CultureInfo.InvariantCulture ),
     PlayerCat = p.PlayerCat,
     Touches = p.TotStats.Touches,
     Load = p.TotStats.TouchLoad,
      };
      ar.Update(ace);
 }
 public void Add( Ace ace )
 {
     Utility.TflWs.InsertAce(ace.Season, ace.Week, ace.TeamCode, ace.PlayerId, ace.PlayerCat,
     ace.Load, ace.Touches);
 }