Beispiel #1
0
        public async Task <PostAdmUsersActivityResponse> PostAdmUserActivity(PostAdmUsersActivityRequest postAdmUsersActivityRequest)
        {
            var httpRequestMessage = new HttpRequestMessage
            {
                Method     = HttpMethod.Post,
                RequestUri = new Uri($"{Client.BaseAddress}/api/users/AdmUserActivity"),
                Headers    =
                {
                    { "AdmUserId",  SolanaIdentityUser.AdmUserId.ToString()  },
                    { "CustomerId", SolanaIdentityUser.CustomerId.ToString() },
                    { "UserLogin",  SolanaIdentityUser.UserLogin             }
                },
                Content = new StringContent(JsonConvert.SerializeObject(postAdmUsersActivityRequest), Encoding.UTF8, "application/json")
            };

            var response = await Client.SendAsync(httpRequestMessage);

            response.EnsureSuccessStatusCode();

            var result = await response.Content.ReadAsAsync <PostAdmUsersActivityResponse>();

            return(result);
        }
Beispiel #2
0
 public PostAdmUsersActivityResponse PostAdmUserActivity(PostAdmUsersActivityRequest postAdmUsersActivityRequest)
 {
     return(_usersLogic.PostAdmUserActivity(postAdmUsersActivityRequest));
 }
Beispiel #3
0
 public ActionResult <PostAdmUsersActivityResponse> PostAdmUserActivity(PostAdmUsersActivityRequest postAdmUsersActivityRequest)
 {
     return(_usersLogic.PostAdmUserActivity(postAdmUsersActivityRequest));
 }