using IEntityManager to handle some commands in the backend, wrote my own extension method that is unncessary