示例#1
0
    public static bool CanDoStuff(this BusinessObject obj, IRepository repository)
    {
        var args = new EArgument {
            Name = obj.Name
        };

        return(repository.AMethod(obj.UserName, args));
    }