public string ChangeStatusToDoItem(Guid id, string status)
        {
            var result   = new object();
            var command  = new TodoListCommand();
            var response = command.ChangeStatusToDoItem(id, status);

            if (response.IsSuccess)
            {
                result = response.Result;
            }
            else
            {
                result = response.Message;
            }

            return(result.ToString());
        }
        public string RemoveTodoListItem(Guid id)
        {
            var result   = new object();
            var command  = new TodoListCommand();
            var response = command.RemoveToDoItem(id);

            if (response.IsSuccess)
            {
                result = JsonConvert.SerializeObject(response.IsSuccess);
            }
            else
            {
                result = response.Message;
            }

            return(result.ToString());
        }
        public string GetAllToDoItem()
        {
            var result   = new object();
            var command  = new TodoListCommand();
            var response = command.GetAllToDoItem();

            if (response.IsSuccess)
            {
                result = response.Result;
            }
            else
            {
                result = response.Message;
            }

            return(result.ToString());
        }
        public string CreateNewTodoListItem(string description)
        {
            var result   = new object();
            var command  = new TodoListCommand();
            var response = command.AddNewToDoItem(description);

            if (response.IsSuccess)
            {
                result = response.Result;
            }
            else
            {
                result = response.Message;
            }

            return(result.ToString());
        }