I got the following code inherited from another developer an I am trying to understand it,what do the square brackets []
stand for?why do some have 'HttpPost' and some 'HttpGet'
namespace webService.Controllers.Scheduler
{
public class testbedsController : EntityController<testbedsService, testbeds>
{
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());
}
}
}