public async Task <HttpResponseMessage> UpdateUser(UpdateUserRequest updateUserRequest) { var content = IntegrationHttpRequest.CreateContentRequest(updateUserRequest); HttpResponseMessage response = await client.PutAsync(UrlBase + "api/v1/update-user", content); return(response); }
public async Task <HttpResponseMessage> DeleteUser(DeleteUserByIdRequest deleteUserRequest) { var content = IntegrationHttpRequest.CreateQuery(deleteUserRequest); HttpResponseMessage response = await client.DeleteAsync(UrlBase + String.Format("api/v1/delete-user?{0}", content)); return(response); }
public async Task <HttpResponseMessage> CreateDevice(CreateDeviceRequest createDeviceRequest) { var content = IntegrationHttpRequest.CreateContentRequest(createDeviceRequest); HttpResponseMessage response = await client.PostAsync(UrlBase + "api/v1/create-device", content); return(response); }
public async Task <HttpResponseMessage> CreateUser(EventGridModel createUserRequest) { var content = IntegrationHttpRequest.CreateContentRequest(createUserRequest); HttpResponseMessage response = await client.PostAsync(UrlBase + "runtime/webhooks/EventGrid?functionName=v1-user-created", content); return(response); }
public async Task <HttpResponseMessage> DeleteOperativeSystem(DeleteOperativeSystemByIdRequest deleteOperativeSystemRequest) { var content = IntegrationHttpRequest.CreateQuery(deleteOperativeSystemRequest); HttpResponseMessage response = await client.DeleteAsync(UrlBase + String.Format("api/v1/delete-operative-system?{0}", content)); return(response); }
public async Task <HttpResponseMessage> UpdateOperativeSystem(UpdateOperativeSystemRequest updateOperativeSystemRequest) { var content = IntegrationHttpRequest.CreateContentRequest(updateOperativeSystemRequest); HttpResponseMessage response = await client.PutAsync(UrlBase + "api/v1/update-operative-system", content); return(response); }
public async Task <HttpResponseMessage> GetUserById(GetUserByIdRequest getUserByIdRequest) { //getCompanyRequest.Id = Guid.Parse("6383ff38-92f9-4bda-e61a-08d783dd9ba7"); var content = IntegrationHttpRequest.CreateQuery(getUserByIdRequest); HttpResponseMessage response = await client.GetAsync(UrlBase + String.Format("api/v1/get-User-by-id?{0}", content)); return(response); }