Ejemplo n.º 1
0
        public ActionResult SaveButtonAllocation(string allocatedButtons)
        {
            ChangeRecords <SA_Resource> records =
                new StoreDataHandler(allocatedButtons).BatchObjectData <SA_Resource>();

            if (records.Updated.Count == 0)
            {
                return(this.Direct());
            }

            foreach (SA_Resource saResource in records.Updated)
            {
                _service.InsertOrUpdateResource(saResource);
            }
            _service.Save();
            return(this.Direct());
        }