# Passing argument model from client to server

**URL:** <https://discuss.hangfire.io/t/passing-argument-model-from-client-to-server/10833>\
**Category:** question\
**Tags:** queues\
**Created:** [July 31, 2024, 2:17pm UTC](https://discuss.hangfire.io/t/passing-argument-model-from-client-to-server/10833 "2024-07-31T14:17:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![madboy007](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@madboy007](https://discuss.hangfire.io/u/madboy007)\
**Post date:** [July 31, 2024, 2:17pm UTC](https://discuss.hangfire.io/t/passing-argument-model-from-client-to-server/10833/1 "2024-07-31T14:17:42Z")

</div>

Hello, I have this model on the client side:

```auto
static void Main()
{
  ...
  string jsonModel = CreateModel(model);
  var jobId = BackgroundJob.Enqueue(() => **???** );
}

public static string CreateModel(MyModel model)
{
 model.Id = 1;
 model.Name = "Steve";
 return JsonConvert.SerializeObject(model);
}

```

When I return it as Json, how can I pass this to the server side with the BackgroundJob.Enqueue() Method?

In this documentation: [Passing Arguments — Hangfire Documentation](https://docs.hangfire.io/en/latest/background-methods/passing-arguments.html) I can only find the usage of Console.WriteLine? Do I need to use this? And how do I handle arguments server side? I need to manipulate the data or work with the model.
