public async Task <IActionResult> Put([FromBody] ToDoItemRequest model)
        {
            if (ModelState.IsValid)
            {
                var userId = User.FindFirst(ClaimTypes.NameIdentifier).Value;

                var plan = await _itemsService.EditItemsAsync(model.Id, model.Description, model.EstimatedDate, userId);

                if (plan == null)
                {
                    return(NotFound());
                }

                return(Ok(new OperationResponse <ToDoItem>
                {
                    IsSuccess = true,
                    Message = "Item has been edited successfully",
                    Record = plan
                }));
            }

            return(BadRequest(new OperationResponse <ToDoItem>
            {
                IsSuccess = true,
                Message = "Some properties are not valid"
            }));
        }