Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public async Task<HttpResponseMessage> Login(LoginParameters parameters, [FromUri]string returnUrl)
- {
- //same validations
- var response = Request.CreateResponse(HttpStatusCode.Moved);
- response.Headers.Location = new Uri("Http://www.google.com");
- return response;
- }
- 'user strict'
- var login = function ($scope, $http) {
- var parameters = {
- userName: userName,
- password: password
- };
- var url = '/api/user/Login';
- $http.post(url, parameters);
- .then(function(response){
- /*some random code that i will remove */
- });
- };
- login.$inject = ['$scope', '$http'];
- module.exports = login;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement