How to consolidate methods that are the same with the exception of object Types
<p>I have 7 methods that are the same with the exception of the Type of the object.</p>

<p>Here are two of them:</p>

<p>1)</p>

<pre><code>public MyResult CreateMyResult(MyResult mi, MyVersion myv)
{
    MyVersionEntity myve = _db.MyVersionEntity.Where(r =&gt; r.Id == myv.Id).First();
    MyResultEntity mie = new MyResultEntity();
    myve.MyResultEntityAssoc.Add(mie);
    mie = _updateMyResultEntity(mi, mie);
    mi.Id = mie.Id;
    return mi;
}
</code></pre>

<p>2)</p>

<pre><code>public MyIssue CreateMyIssue(MyIssue mi, MyVersion myv)
{
    MyVersionEntity myve = _db.MyVersionEntity.Where(r =&gt; r.Id == myv.Id).First();
    MyIssueEntity mie = new MyIssueEntity();
    myve.MyIssueEntityAssoc.Add(mie);
    mie = _updateMyIssueEntity(mi, mie);
    mi.Id = mie.Id;
    return mi;
}
</code></pre>

<p>Is there a way to consolidate all of them?</p>

<p>Thanks!</p>
