User1526116210 posted
Assuming that all of the months are sequential you could do something like this.
int currentMonth = returnedData.Month;
var requiredData = db.Table.FirstOrDefault(m => m.Month == currentMonth -1);
I haven't used SQL in a while so I've represented what your code would look like with EF.