I have a table which stores cultural variants for a particular key for example.
RecordID Key CultureID Description 1 1 en-GB Hour 2 1 es-ES hora 3 2 en-GB Swimming
I have this as an IEnumerable Given the paremeter of @CultureID="es-ES" I want to return the following. In short If the cultural variant exists then return it for the given parameter, else return the "en-GB" entry ( Which Allways Exists ). Can someone help me with the LINQ query for this.
RecordID Key CultureID Description 2 1 es-ES hora 3 2 en-GB Swimming
Thanks