title: Execute line of code after returning value
body: <p>I'm trying to execute code after yield return. I have WebMethod that call's another method and I want to do some staff after returning value to WebMethod (execute method setNextCampaign())
  Here is my code:</p>
  
  <pre><code>[WebMethod]
  public long NextCall(long UserID)
  {
      CampaignManagerExtended cacheCampaignManager = fillCampaignManager(false);
  
      return cacheCampaignManager.NextCall(UserID).First();
  }
  
  
  
  public IEnumerable&lt;long&gt; NextCall(long UserID)
          {
              UserExtended ue = null;
              try
              {
                  if (!CacheUsers.ContainsKey(UserID))
                      AddUser(UserID);
  
                  ue = CacheUsers.First(p =&gt; p.Key == UserID).Value;
                  if (ue.NextCampaign != null)
                  {
                      QueueItemPersonal qp = ue.NextFromPersonalQueue();
                      if (qp != null)
                      {
  
                          yield return qp.CampaignPersonID;
                      }
                      else 
                      { 
                          QueueItemScheduled qs = ue.NextCampaign.NextFromScheduleQueue();
                          if (qs != null)
                          {
  
                              yield return qs.CampaignPersonID;
                          }
                          else 
                          { 
                              QueueItemGeneral qg = ue.NextCampaign.NextFromGeneralQueue();
                              if (qg != null)
                              {
  
                                  yield return qg.CampaignPersonID;
                              }                  
                              else
                                   yield return 0;
                          }
                      }
                      ue.NextCampaign.fillGeneralQueue();
                      ue.setNextCampaign();
                  }
                  else
                      yield return 0;
  
              }
              //catch
              //{
              //    yield return 0;
              //}
              finally
              {
  
              }
          }
  </code></pre>
  
  <p>Any ideas?</p>