In the Create method of controllers I do this all the time:
stratum.Create();
if (IsXHR) {
stratum.Study.Strata.Add(stratum);
PropertyBag["study"] = stratum.Study;
RenderView("_listed", true);
}
On returning an unordered list is rendered with the newly added item.
While all of this is well and good and does not seem correct to have to call
stratum.Study.Strata.Add(stratum);
Is there a more appropriate way to create the stratum object so that I do
not have to make that awkward looking call?
Thanks in advance,
Marc
--
You received this message because you are subscribed to the Google Groups "Castle
Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.