public async Task <ActionResult <TodoItem> > GetTodoItem(string id) { _logger.LogInformation($"Getting Todo item, id: {id}"); var table = TableStorageHelper.GetTableReference(_storageConnectionString, _tableName); var findOp = TableOperation.Retrieve <TodoItemEntity>(TodoItemMapper.TablePartitionKey, id); var findResult = await table.ExecuteAsync(findOp); if (findResult.Result == null) { return(new NotFoundResult()); } var todoEntity = (TodoItemEntity)findResult.Result; var todoItem = TodoItemMapper.ToModel(todoEntity); return(new OkObjectResult(todoItem)); }