public async Task <IActionResult> CreateProject([FromBody] CreateUpdateProjectDto createProjectDto)
        {
            try
            {
                if (createProjectDto == null)
                {
                    _logger.LogError("Object sent from client is null.");
                    return(BadRequest("Owner object is null"));
                }
                if (!ModelState.IsValid)
                {
                    _logger.LogError("Invalid object sent from client.");
                    return(BadRequest("Invalid model object"));
                }

                await _projectRepository.CreateAsync(new ProjectEntity
                {
                    PartitionKey = createProjectDto.Name,
                    RowKey       = Guid.NewGuid().ToString(),
                    Description  = createProjectDto.Description,
                    Code         = createProjectDto.Code,
                });

                return(Created("", createProjectDto));
            }
            catch (Exception ex)
            {
                _logger.LogError($"Something went wrong inside project Create action: {ex.Message}");
                return(StatusCode(500, "Internal server error"));
            }
        }
        public async Task <IActionResult> UpdateProject(string id, [FromBody] CreateUpdateProjectDto updateProjectDto)
        {
            try
            {
                if (updateProjectDto == null)
                {
                    _logger.LogError("Object sent from client is null.");
                    return(BadRequest("Object is null"));
                }
                if (!ModelState.IsValid)
                {
                    _logger.LogError("Invalid object sent from client.");
                    return(BadRequest("Invalid model object"));
                }
                await _projectRepository.UpdateAsync(new ProjectEntity
                {
                    RowKey       = id,
                    PartitionKey = updateProjectDto.Name,
                    Description  = updateProjectDto.Description,
                    Code         = updateProjectDto.Code,
                    ETag         = "*"
                });

                return(Ok(updateProjectDto));
            }
            catch (Exception ex)
            {
                _logger.LogError($"Something went wrong inside Update action: {ex.Message}");
                return(StatusCode(500, "Internal server error"));
            }
        }