Repository controller - update method
Basic implementation and tests