public async Task <bool> AddToDoData(Data.ToDoDataItem toDoDataItem)
        {
            var todoData = new ToDoGrpcService.ToDoData()
            {
                Status      = toDoDataItem.Status,
                Title       = toDoDataItem.Title,
                Description = toDoDataItem.Description
            };

            var response = await _toDoServiceClient.PostToDoItemAsync(todoData, null);

            return(response.Status);
        }
        public bool AddToDoData(Data.ToDoDataItem toDoDataItem)
        {
            var client = GetServiceClient();

            var todoData = new ToDoGrpcService.ToDoData()
            {
                Status      = toDoDataItem.Status,
                Title       = toDoDataItem.Title,
                Description = toDoDataItem.Description
            };

            var response = client.PostToDoItem(todoData, null);

            return(response.Status);
        }
        public bool UpdateToDoData(Data.ToDoDataItem toDoDataItem)
        {
            var client     = GetServiceClient();
            var updateData = new ToDoGrpcService.ToDoPutQuery();

            updateData.Id           = toDoDataItem.Id;
            updateData.ToDoDataItem = new ToDoGrpcService.ToDoData()
            {
                Id          = toDoDataItem.Id,
                Status      = toDoDataItem.Status,
                Title       = toDoDataItem.Title,
                Description = toDoDataItem.Description
            };
            var response = client.PutToDoItem(updateData, null);

            return(response.Status);
        }
        public async Task <bool> UpdateToDoData(Data.ToDoDataItem toDoDataItem)
        {
            var updateData = new ToDoGrpcService.ToDoPutQuery
            {
                Id           = toDoDataItem.Id,
                ToDoDataItem = new ToDoGrpcService.ToDoData()
                {
                    Id          = toDoDataItem.Id,
                    Status      = toDoDataItem.Status,
                    Title       = toDoDataItem.Title,
                    Description = toDoDataItem.Description
                }
            };
            var response = await _toDoServiceClient.PutToDoItemAsync(updateData, null);

            return(response.Status);
        }