예제 #1
0
        public async Task <ActionResult <string> > AuthenticateWebAdminAsync([FromBody] AuthenticateModelWebAdmin model)
        {
            var authenticateResponse = await _accountService.AuthenticateAsync(model);

            if (authenticateResponse == null)
            {
                return(Unauthorized());
            }
            return(Ok(authenticateResponse));
        }