public void CreateTaskDueDateString(string taskContent, long?projectId = null, long?sectionId = null, long?parentId = null,
                                            int?order = null, string dueDate = null, int?priority = null, string dueLang = null)
        {
            JObject parameters = new JObject();

            parameters.Add("content", taskContent);
            if (projectId != null)
            {
                parameters.Add("project_id", projectId);
            }
            if (sectionId != null)
            {
                parameters.Add("section_id", sectionId);
            }
            if (parentId != null)
            {
                parameters.Add("parent_id", parentId);
            }
            if (order != null)
            {
                parameters.Add("order", order);
            }
            if (priority != null)
            {
                parameters.Add("priority", priority);
            }
            if (dueDate != null)
            {
                parameters.Add("due_string", dueDate);
            }
            if (dueLang != null)
            {
                parameters.Add("due_lang", dueLang);
            }

            IRestResponse response = TaskCreateCallManager.CreateTask(parameters);

            SetStatus(response);

            string content = response.Content;

            if (StatusMessage.Equals("OK"))
            {
                TaskDTO.DeserialiseTask(content);
                TaskJson = JsonConvert.DeserializeObject <JObject>(content);
            }
        }
 public TaskCreateService(TaskCreateCallManager taskCreateCallManager)
 {
     TaskCreateCallManager = taskCreateCallManager;
 }