private PersistResponse <T> ToPersistResponseOfType <T>(TableResult result) where T : ITableEntity
        {
            result.CheckNotNull(nameof(result));

            var model = default(T);

            if (result.HttpStatusCode.IsSuccess())
            {
                if (result.Result is T entity)
                {
                    model = entity;
                }
            }

            return(new PersistResponse <T>()
            {
                Message = result.HttpStatusCode.IsSuccess() ? "OK" : "Failed",
                Result = model,
                StatusCode = result.HttpStatusCode,
                ETag = result.Etag
            });
        }