Pregunta de entrevista de The Johns Hopkins University

How would you implement a string length limit of an object field in ASP .NET MVC/Entity Framework?