Ejemplo n.º 1
0
        public async Task <IActionResult> GetUser(int id)
        {
            var user = await userInfo.GetUser(id);

            var userToReturn = mapper.Map <UserForListDto>(user);

            return(Ok(userToReturn));
        }
Ejemplo n.º 2
0
 // 登录
 public static UserInfo SignIn(string username, string password)
 {
     return(iuser.GetUser(username, password));
 }