Note: My question is for using DTO, ViewModel in an .NET/C# project.
I know DTO, ViewModel, Models. They have specific purposes. We use DTO to transfer data and ViewModel to show data to an end user. But I am confused about to use all of them together. I did a lot of Googling but did not find a complete tutorial how to use both of them all together.
I am not sure whether they can be used all together or they must have to use for specific purposes like for regular MVC we can use ViewModel and for WebAPI we will use DTO.
Can anybody explain the way to use them or any link is appreciated which focuses the use of both of them all together.