public bool AssignToAgent(string business_id, string agent_id, string thread_id) { try { return(_threadService.AssignToAgent(business_id, thread_id, agent_id)); } catch (Exception ex) { _logService.Create(new Log { category = "Threads", link = $"{Request.HttpContext.Request.Scheme}://{Request.HttpContext.Request.Host}{Request.HttpContext.Request.Path}{Request.HttpContext.Request.QueryString}", message = ex.Message, name = string.Format("Assign thread-{0} to agent-{1}", thread_id, agent_id) }); throw ex; } }