Posts by Gus • 286 points
3 posts
-
1
votes3
answers589
viewsA: Exception in reading XML file
I’m posting an example of how to read an xml from disk and deserialize it to a class. This way you don’t have to pick each item manually. This works on an old project I have here. Let’s go for the…
-
9
votes2
answers9392
viewsA: Serialize object list for JSON: A circular Reference was Detected while serializing an Object of type
I recommend the use of this library. It is highly widespread in the .net. In my case I use the resource below to avoid cyclic references and ignore null values in json at the time of serialization.…
-
7
votes3
answers563
viewsA: Which application layer is aimed at processing the most extensive and complex business rules?
It would not indicate creating business methods in the MVC controller. It is very common for you to need to expose these methods through a web service, or to use the same business rules in a desktop…