Ejemplo n.º 1
0
        public Entity UpdateEntity([RestMessage(RestMessageFormat.SimpleJson)] Entity entityToUpdate)
        {
            IEntityRepositoryService repository = ApplicationContext.Current.GetService <IEntityRepositoryService>();

            // Get all the acts if none were supplied, and all of the relationships if none were supplied
            return(repository.Save(entityToUpdate).GetLocked() as Entity);
        }