Moving code from controller to service.
Adding a constructor into DTOs