diff --git a/Apollo/assets/js/controllers/statusCtrl.js b/Apollo/assets/js/controllers/statusCtrl.js index 8ed85959..35d9737f 100644 --- a/Apollo/assets/js/controllers/statusCtrl.js +++ b/Apollo/assets/js/controllers/statusCtrl.js @@ -7,7 +7,6 @@ app.controller("statusCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$localStorage", "$http", "$state", function ($scope, toaster, $filter, apiPoint, $localStorage, $http, $state) { $scope.myModel = { - "StatusID": "", "StatusName": "", "switchsetting": true @@ -72,7 +71,6 @@ $scope.statusForm = { 'Content-Type': 'application/json' }, data: { - statusID: myModel.StatusID, statusName: myModel.StatusName, status: myModel.switchsetting, createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID @@ -100,7 +98,6 @@ $scope.statusForm = { $scope.myModel = angular.copy($scope.master); form.$setPristine(true); $scope.myModel = { - "StatusID": "", "StatusName": "", "switchsetting": true }; @@ -186,7 +183,7 @@ $scope.statusForm = { ListCode: myModel.ListCode, ListName: myModel.ListName, status: myModel.IsActive, - createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID + updatedBy: JSON.parse(localStorage.getItem('localObj')).localUserID } }; $http(update).then(function (response) {