public TEntity Create(TEntity entity)
 {
     _memoryContext.GetList <TEntity>().Add(entity);
     return(entity);
 }