GetPermissionList(): void { var query = breeze.EntityQuery.from("GetPermissions"); this.dataManager.Query(query).then( data => { this.$scope.PermissionsList = <Permission[]>data.results; }).catch((s) => alert("fail: " + s)); }
createItem(item: any): void { this.dataManager.CreateEntity('Permission', { NAME: item.Name, DESCRIPTION: item.Description, DATE_CREATED: new Date() }); this.dataManager.SaveChanges(); this.GetPermissionList(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)