سؤال

In my web api, the PUT request is data bound using an interface like this public void Put([FromBody] IPage value), this works great but what is the best approach to update the object and put it back into my storage? Note that I'm using an interface here and the correct type is posted within the json using the $type attribute.

I'm also using RavenDB so putting the value straight into the document store does not work because the posted object is not associated with the current session.

هل كانت مفيدة؟

المحلول

Marcus,

Why can't you just call session.Store(value); ?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top