andrewhomes
New Member
In the server I have this code:\[code\]public enum EnumFilter { True = 0, False = 1, All = 2 }public class FiltroSeguroRequest{ public EnumFilter Vigentes { get; set; } }\[/code\]In the client I make an object literal to send as parameter in an ajax call with a POST to an ASMX Web Service:\[code\]this.request = { Vigentes: 2 };\[/code\]As you can see i'm passing and integer to the Enum so at the server is transformed to an enum... but it doesn't work, cause is converted to a Boolean instead.