title: Multiple Optional Parameters with ServiceStack.Net
body: <p>I'm trying to implement a service with Multiple Optional Parameters using ServiceStack.Net</p>
  
  <p>At the moment my route looks like this</p>
  
  <pre><code>Routes.Add&lt;SaveWeek&gt;("/save/{Year}/{Week}");
  </code></pre>
  
  <p>I want to support uris like this:</p>
  
  <blockquote>
    <p>/save/2010/12/Monday/4/Tuesday/6/Wednesday/7</p>
  </blockquote>
  
  <p>ie Monday=4, Tuesday=6 and Wednesday=7</p>
  
  <p>However I want the ability to ignore days i.e. the person calling the service can decide if they want to save each value for each day...</p>
  
  <p>i.e. Like this with missing parameter values</p>
  
  <blockquote>
    <p>?Monday=4&amp;Wednesday=7&amp;Friday=6</p>
  </blockquote>
  
  <p>Of course one solution would be to have the following route and just pass 0 when I don't want to save the value.</p>
  
  <pre><code>Routes.Add&lt;SaveWeek&gt;("/save/{Year}/{Week}/{Monday}/{Tuesday}}/{Weds}/{Thurs}/{Fri}/{Sat}/{Sun}");
  </code></pre>
  
  <p>But..... is there a better way of achieving this functionality?</p>