Exemple #1
0
        public async Task <HttpResponseMessage> Authenticate(DtoSignIn signInData)
        {
            var authResult = await AuthenticationLogic.Authenticate(signInData);

            var token = AuthenticationLogic.GetToken(signInData.EMail);
            var resp  = new SignInResponse {
                AuthorizationResult = authResult, Token = token
            };
            var response = Request.CreateResponse(HttpStatusCode.OK, resp);

            return(response);
        }