Add validation support in Dto generator
Add training user edit method
Add test cases for training controller