public SaveResult ClientSave(JObject saveBundle)
        {
            var guardian = new StudentGuard(ctxManager, loggedInUserId);

            ctxManager.BeforeSaveEntitiesDelegate += guardian.BeforeSaveEntities;
            return(ctxManager.SaveChanges(saveBundle));
        }
        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));
            }
        }
Exemple #3
0
 public SaveResult SaveChanges(JObject saveBundle)
 {
     return(_persistenceManager.SaveChanges(saveBundle));
 }
 public SaveResult SaveClientChanges(JObject saveBundle)
 {
     return(ctxManager.SaveChanges(saveBundle));
 }