public async Task <GetShopCarByUserNameResponse> GetUserInfoByUserNameAsync([FromBody] GetShopCarByUserNameRequest request) { GetShopCarByUserNameResponse response = new GetShopCarByUserNameResponse(); var userInfo = await _context.UserEntities.FirstOrDefaultAsync(a => a.CustomerPhone == request.UserName); if (userInfo != null) { response.userInfo.PKID = userInfo.PKID; response.userInfo.LastLoginTime = userInfo.LastLoginTime; } return(response); }
public GetShopCarByUserNameResponse GetUserInfoByUserNameAsync(GetShopCarByUserNameRequest request) { string url = $"{configuration["ServiceAddress:Service.Account"]}{configuration["MehtodName:Account.MiUser.GetUserInfoByUserNameAsync"]}"; return(apiHelperService.PostAsync <GetShopCarByUserNameResponse>(url, request).Result); }