Callin IEnumerable with two differernt parameters
===

I have following catch block under a method:

	

    catch( Exception ex )
    				{
    					LogErrors( errorResult );					
    				}
    			

This is how it is being used:

 

    private static void LogErrors(
    			IEnumerable<usp_GetResult> errorResult )
    		{
    
    		}

Basically i am passing a stored procedure call as IEnumerable. 

Now i am trying to make this call again but from different method using different stored procedure for example usp_GetHeros. 

Do i have to duplicate the LogErrors method? Or is there any way to call this method with two different IEnumerable types?


