if statement to check number of days in a month <p>I am writing a simple program in asp.net mvc5 that will display a calendar. I have an array that stores the months and days 1-31. I would like to use an if statement to check for the month to allow only the appropriate number of days. I am really new to mvc and would appreciate any suggestions on how to accomplish this.</p>