public TEntity GetById(int id) { try { return _instaContext.Find<TEntity>(id); } catch (Exception) { throw new Exception("Couldn't retrieve entities"); } }