I\'m building an MVC app in which the user will have the possibilities of using a lot of filters to get exactly what he wants.
Here\'s an overview of those filters based
Ho do you normally face this in JavaScript ? You would create an option
object, like
var op = {
cardName : "..",
cardType : "" ,
...
}
and pass it to a function. Correct ?
The same do in C#
too.
Define a, say, Conditions
class, like
public class Conditions {
public string CardName {get;set;}
public string CardType {get;set;}
..
}
and pass it to your function, which controls the values of the properties of that type to act accordingly after.