How can i simplify multiple conditions? - C#