                   ],
                    selectedOption: { id: '1', name: 'Public' }
            };
            $scope.SendData1 = function () {
            var post = $http({
                method: "POST",
                url: "/api/v2/notes",
                dataType: 'json',
                data: { name: $scope.name, body: $scope.body, type: $scope.data.selectedOption.name.toLowerCase() },
                headers: { "Content-Type": "application/json" },
                headers: {'Authorization': 'Beare