public async Task <IResult> Login(LoginParameters parameter) { var repositoryResult = await _loginServices.Login(parameter); var result = ResponseHandler.GetResult(repositoryResult); return(result); }
public HttpResponseMessage Login(string logins) { LoginDTO logindto = TransformHelper.ConvertBase64JsonStringToDTO <LoginDTO>(logins); UserLoginDTO ulogin = _ILoginServices.Login(logindto); HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(JsonConvert.SerializeObject(ulogin), System.Text.Encoding.GetEncoding("UTF-8"), "application/json") }; return(result); }
public IObservable <string> Login(ICredential credential) { return(loginService.Login(credential).SelectMany(user => { if (user != null) { return this.GenerateToken(user); } else { return null; } })); }
public ActionResult login(ApplicationUserDTO applicationUser) { return(Ok(_loginService.Login(applicationUser, _jwtOptions))); }
public async Task <MessageModel <string> > Login(LoginParam jsondata) { return(await _loginServices.Login(jsondata)); }