private string GetJobId(Task model)
        {
            string jobId;

            if (Request == null)
            {
                jobId = GetJobIdFromUrl(model.Url);
            }
            else
            {
                jobId = ExtendMethods.URLSafeString($"{model.Id}_{model.Name}");
            }
            return(jobId);
        }
        private string GetJobIdFromUrl(string url)
        {
            Uri uri = new Uri(url);

            string[] appMethod = uri.AbsolutePath.Split('/');
            var      query     = HttpUtility.ParseQueryString(uri.Query);

            string hostname = ExtendMethods.URLSafeString(uri.Host);
            string app      = appMethod[1];
            string method   = appMethod[2];
            string button   = query["button"];
            string modelId  = query["modelId"];

            return($"{hostname}_{app}_{method}_{button}_{modelId}");
        }