Sorry maybe I missed something (I don't have a pro knowledge of .Net
after all) –
can you write one SyndicationModel class or a single controller to
work generally for every defined model?
You also say the AP.Net MVC is RESTfull, but when I say 'Accept:
application/json' to your app (I tried xml), I get the same HTML
result (that would work in Rails). I always thought you have to
specify output in return of every given controller to enable this. The
whole site doesn't seem to me extremely RESTfull in the original
meaning as described e.g. in this article
http://blog.steveklabnik.com/2011/07/03/nobody-understands-rest-or-http.html
I don't want mess up your code for number of reasons:
– API should be inherent feature of the framework – and it is w/
ADO.Net as far as I know;
– I'd be probably adding stuff like "if (accept header is json):
return json and not the default view)" into existing controllers or
writing additional SyndicationModels;
– it's not very easy to make sense of the code for a .Net beginner, it
seems there's a lot of duplicated features, coding style differs from
file to file
Anyway, thanks for pointing that out, I didn't know there are better
options.