Say for example, we have a function
public string AssignValueOnAvail(string Property in ( "A", "B" ))
{
return "";
}
In this can we fix the input paramter value as in ( "A", "B" ) ?. So that other than these values can't be entered.
As we have check constraint in DB.
Please suggest.