At the risk of asking a noob question, I am trying to test a url to post to a webapi endpoint that it should have model bound to, were this MVC:
public ReturnModel GetSomeInformation( ValidationPackage validationPackage)
{
return new ReturnModel();
}
where ValidationPackage is something like:
public class ValidationPackage : BaseValidationPackage
{
[DataMember]
public int ClubId { get; set; }
}
So when I simply try to test this or demo it for my iOS guy that needs it, the following doesn't bind:
http://[local]/api/meet/GetInformation?ClubId=152
Should I change the method signature to this, then it all works fine:
public ReturnModel GetSomeInformation( int clubId) {...}
But somehow I was under the impression that my first version should have worked and that I'm doing something wrong as I was under the impression that webapi was just an implementation of MVC.