public StoryData Update(StoryData data)
{
using (var ctx = Csla.Data.ObjectContextManager<ApplicationEntities>
.GetManager(Database.ApplicationConnection, false))
{
var story =
new Story
{
StoryId = data.StoryId
};
ctx.ObjectContext.Stories.Attach(story);
DataMapper.Map(data, story);
ctx.ObjectContext.SaveChanges();
return data;
}
}