コード例 #1
0
        public SaveResult ClientSave(JObject saveBundle)
        {
            var guardian = new StudentGuard(ctxManager, loggedInUserId);

            ctxManager.BeforeSaveEntitiesDelegate += guardian.BeforeSaveEntities;
            return(ctxManager.SaveChanges(saveBundle));
        }
コード例 #2
0
        public async Task <SaveResult> SaveChanges()
        {
            var bodyStr = "";
            var req     = HttpContext.Request;

            req.EnableBuffering();

            using (var stream = new StreamReader(req.Body))
            {
                bodyStr = await stream.ReadToEndAsync();

                var body = JObject.Parse(bodyStr);

                return(PersistenceManager.SaveChanges(body));
            }
        }
コード例 #3
0
 public SaveResult SaveChanges(JObject saveBundle)
 {
     return(_persistenceManager.SaveChanges(saveBundle));
 }
コード例 #4
0
 public SaveResult SaveClientChanges(JObject saveBundle)
 {
     return(ctxManager.SaveChanges(saveBundle));
 }