Replace if statements with function
Replace if statements with function

dubrovkinmaxim/sendgrid-csharp,sendgrid/sendgrid-csharp,sendgrid/sendgrid-csharp,sendgrid/sendgrid-csharp,dubrovkinmaxim/sendgrid-csharp