Пример #1
0
        public async Task <IResult> Login(LoginParameters parameter)
        {
            var repositoryResult = await _loginServices.Login(parameter);

            var result = ResponseHandler.GetResult(repositoryResult);

            return(result);
        }
Пример #2
0
        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;
         }
     }));
 }
Пример #4
0
 public ActionResult login(ApplicationUserDTO applicationUser)
 {
     return(Ok(_loginService.Login(applicationUser, _jwtOptions)));
 }
 public async Task <MessageModel <string> > Login(LoginParam jsondata)
 {
     return(await _loginServices.Login(jsondata));
 }