Esempio n. 1
0
        public async Task <IActionResult> DoLogin([FromBody] AuthenticateCustomerRequest request)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }

            var query = new AuthenticateCustomerQuery(request.Email, request.Password);

            return(Response(await _mediator.Send(query)));
        }
    public async Task <IActionResult> DoLogin([FromBody] AuthenticateCustomerRequest request)
    {
        var query = new AuthenticateCustomerQuery(request.Email, request.Password);

        return(await Response(query));
    }