/* Logic Solution WeeeCarbonFootprint Controller for Account View */ angular.module('Account') .controller('AccountCtrl', ['$scope', 'LogicService', '$window', function ($scope, LogicService, $window) { $scope.Login = function () { LogicService.Login.post({ 'UserName': $scope.UserName, 'Password': $scope.Password, 'RememberMe': true }) .$promise.then(function (response) { if (JSON.parse(response) > -1) { } else { } $window.sessionStorage.Login = true; window.location.href = '/Home/WeeeCarbonFootprint#/SurveyOrder/Order'; }, function (response) { $window.sessionStorage.Login = false; }); } $scope.ForgotPwd = function () { } $scope.CreateAccount = function () { window.location.href = '/Home/Account#/Create'; } }])