Esempio n. 1
0
    public byte[] GetPicture <T>(string name) where T : IBaseFileEntity
    {
        var tRecord = (IBaseFileEntity)_db.Find(typeof(T), name);

        if (tRecord != null)
        {
            return(_fm.GetPicture(tRecord.picturePath));
        }
        return(null);
    }