I did Google and checked couple of tutorials. Everywhere, it is said that DTO help to hide our actual entity structure. But, I do not get it. Here is example:
public class WebSite
{
public string Url {get;set;}
public string Author {get;set;}
public DateTime CreatedAt {get;set;}
}
Now Dto
public class WebSiteDto
{
public string Url {get;set;}
public string Author {get;set;}
public DateTime CreatedAt {get;set;}
}
Lets say, I use DTO to collect info from user. What we have protected or hidden here from hackers or what kind of encapsulation is done here? Note: I am newbie to MVC Web Api
Thanks