title: MVC route attribute square brackets
body: <p>I got the following code inherited from another developer an I am trying to understand it,what do the <code>square brackets []</code> stand for?why do some have 'HttpPost' and some 'HttpGet'</p>
  
  <pre><code>namespace webService.Controllers.Scheduler
  {
      public class testbedsController : EntityController&lt;testbedsService, testbeds&gt;
      {
          testbedsService p = new testbedsService();
          [Route("api/testbeds/")]
          [HttpPost]
          public testbeds AddOrUpdate(testbeds testbedsInformation)
          {
              try
              {
  
                  return p.AddOrUpdate(testbedsInformation);
              }
              catch (Exception e)
              {                
                  throw new Exception(e.ToString());
              }
          }
  }
  </code></pre>