public long InsertUserLoginLogs(UserLoginLogs userLoginLogs)
        {
            var uri = API.UserLoginLog.InsertUserLoginLogs(_path);
            HttpResponseMessage response = _client.PostAsJsonAsync(uri, userLoginLogs).Result;

            if (response.IsSuccessStatusCode)
            {
                return(response.Content.ReadAsStringAsync().Result.ToLong());
            }
            return(0);
        }
 public async Task <long> InsertUserLoginLogs(UserLoginLogs loginLogs) =>
 await logRepository.InsertUserLoginLogs(loginLogs);
示例#3
0
        public async Task <ActionResult> InsertUserLoginLogs([FromBody] UserLoginLogs userLoginLogs)
        {
            var result = await userLoginLogService.InsertUserLoginLogs(userLoginLogs);

            return(Ok(result));
        }