I am struggling to default CId and SId to 1 if the parameters are empty,
public ViewResult Index(int? CId,int?SId,string name,int? p)
{
if (CId == 0 || SId == 0)
{
CId = 1;
SId = 1;
}
Then I will use the values for a normal query. Thanks for any help