示例#1
0
        public ActionResult <UserLoginDTO> Login([FromBody] UserLoginDTO userLoginDTO)
        {
            var response = _srv.Login(userLoginDTO);

            if (response == null)
            {
                return(Unauthorized("Wrong username or password"));
            }
            else
            {
                return(Ok(response));
            }
        }